Class IncorrectObjectTypeException

  • All Implemented Interfaces:
    Serializable

    public class IncorrectObjectTypeException
    extends 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
    • Constructor Detail

      • IncorrectObjectTypeException

        public IncorrectObjectTypeException​(ObjectId id,
                                            String type)
        Construct an 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 an 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