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
A given object is not of an expected object type.
- Since:
- 5.11
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWrongObjectTypeException
(ObjectId id, int type) Construct aWrongObjectTypeException
for the specified object id, giving the expected type. -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the expected type code.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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
name
-
type
private int type
-
-
Constructor Details
-
WrongObjectTypeException
Construct aWrongObjectTypeException
for the specified object id, giving the expected type.
-
-
Method Details
-
getObjectId
Retrieves the name (SHA-1) of the object.- Returns:
- the name
-
getExpectedType
public int getExpectedType()Retrieves the expected type code. SeeConstants
.OBJ_*
.- Returns:
- the type code
-