Class IncorrectObjectTypeException

  • All Implemented Interfaces:
    java.io.Serializable

    public class IncorrectObjectTypeException
    extends java.io.IOException
    An inconsistency with respect to handling different object types. This most likely signals a programming error rather than a corrupt object database.
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IncorrectObjectTypeException

        public IncorrectObjectTypeException​(ObjectId id,
                                            java.lang.String type)
        Construct and IncorrectObjectTypeException for the specified object id. Provide the type to make it easier to track down the problem.
        Parameters:
        id - SHA-1
        type - object type
      • IncorrectObjectTypeException

        public IncorrectObjectTypeException​(ObjectId id,
                                            int type)
        Construct and IncorrectObjectTypeException for the specified object id. Provide the type to make it easier to track down the problem.
        Parameters:
        id - SHA-1
        type - object type