Package org.eclipse.jgit.api.errors
Class WrongObjectTypeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.eclipse.jgit.api.errors.GitAPIException
-
- org.eclipse.jgit.api.errors.WrongObjectTypeException
-
- All Implemented Interfaces:
Serializable
public class WrongObjectTypeException extends GitAPIException
A given object is not of an expected object type.- Since:
- 5.11
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WrongObjectTypeException(ObjectId id, int type)
Construct aWrongObjectTypeException
for the specified object id, giving the expected type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExpectedType()
Retrieves the expected type code.String
getObjectId()
Retrieves the name (SHA-1) of the object.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
WrongObjectTypeException
public WrongObjectTypeException(ObjectId id, int type)
Construct aWrongObjectTypeException
for the specified object id, giving the expected type.
-
-