Package jadex.commons
Class MultiException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- jadex.commons.MultiException
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable
 
 public class MultiException extends java.lang.RuntimeExceptionAn exception that can store multiple causes.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description MultiException()Create a new multi exception.MultiException(java.lang.String message)Create a new multi exception.MultiException(java.lang.String message, java.util.List<java.lang.Throwable> causes)Create a new multi exception.MultiException(java.util.List<java.lang.Throwable> causes)Create a new multi exception.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiExceptionaddCause(java.lang.Throwable cause)Add an exception.java.lang.Throwable[]getCauses()Get the causes.java.lang.StringgetMessage()Returns the detail message string of this throwable.voidsetText(java.lang.String message)Set the message.
 
- 
- 
- 
Constructor Detail- 
MultiExceptionpublic MultiException() Create a new multi exception.
 - 
MultiExceptionpublic MultiException(java.lang.String message) Create a new multi exception.
 - 
MultiExceptionpublic MultiException(java.util.List<java.lang.Throwable> causes) Create a new multi exception.
 - 
MultiExceptionpublic MultiException(java.lang.String message, java.util.List<java.lang.Throwable> causes)Create a new multi exception.
 
- 
 - 
Method Detail- 
addCausepublic MultiException addCause(java.lang.Throwable cause) Add an exception.- Parameters:
- cause- The cause.
 
 - 
getCausespublic java.lang.Throwable[] getCauses() Get the causes.- Returns:
- The causes.
 
 - 
getMessagepublic java.lang.String getMessage() Returns the detail message string of this throwable.- Overrides:
- getMessagein class- java.lang.Throwable
- Returns:
- The detail message string of this Throwableinstance (which may benull).
 
 - 
setTextpublic void setText(java.lang.String message) Set the message.- Parameters:
- message- The message.
 
 
- 
 
-