Package org.eclipse.jgit.errors
Class CompoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.jgit.errors.CompoundException
- All Implemented Interfaces:
Serializable
An exception detailing multiple reasons for failure.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an exception detailing many potential reasons for failure. -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
format
(Collection<Throwable> causes) Get the complete list of reasons why this failure happened.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:
-
causeList
-
-
Constructor Details
-
CompoundException
Constructs an exception detailing many potential reasons for failure.- Parameters:
why
- Two or more exceptions that may have been the problem.
-
-
Method Details
-
format
-
getAllCauses
Get the complete list of reasons why this failure happened.- Returns:
- unmodifiable collection of all possible reasons.
-