Class JGitInternalException
- All Implemented Interfaces:
Serializable
During command execution a lot of exceptions may be thrown. Some of them represent error situations which can be handled specifically by the caller of the command. But a lot of exceptions are so low-level that it is unlikely that the caller of the command can handle them effectively. The huge number of these low-level exceptions which are thrown by the commands lead to a complicated and wide interface of the commands. Callers of the API have to deal with a lot of exceptions they don't understand.
To overcome this situation this class was introduced. Commands will wrap all
exceptions they declare as low-level in their context into an instance of
this class. Callers of the commands have to deal with one type of low-level
exceptions. Callers will always get access to the original exception (if
available) by calling #getCause()
.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionJGitInternalException
(String message) Construct an exception for low-level internal exceptionsJGitInternalException
(String message, Throwable cause) Construct an exception for low-level internal exceptions -
Method Summary
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:
-
-
Constructor Details
-
JGitInternalException
Construct an exception for low-level internal exceptions- Parameters:
message
- error messagecause
- aThrowable
-
JGitInternalException
Construct an exception for low-level internal exceptions- Parameters:
message
- error message
-