Package jadex.common
Class MultiException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
jadex.common.MultiException
- All Implemented Interfaces:
Serializable
An exception that can store multiple causes.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new multi exception.MultiException
(String message) Create a new multi exception.MultiException
(String message, List<Throwable> causes) Create a new multi exception.MultiException
(List<Throwable> causes) Create a new multi exception. -
Method Summary
Modifier and TypeMethodDescriptionAdd an exception.Get the causes.Returns the detail message string of this throwable.void
Set the message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
causes
The exceptions. -
message
The message.
-
-
Constructor Details
-
MultiException
public MultiException()Create a new multi exception. -
MultiException
Create a new multi exception. -
MultiException
Create a new multi exception. -
MultiException
Create a new multi exception.
-
-
Method Details
-
addCause
Add an exception.- Parameters:
cause
- The cause.
-
getCauses
Get the causes.- Returns:
- The causes.
-
getMessage
Returns the detail message string of this throwable.- Overrides:
getMessage
in classThrowable
- Returns:
- The detail message string of this
Throwable
instance (which may benull
).
-
setText
Set the message.- Parameters:
message
- The message.
-