Package com.streambase.sb
Class StreamBaseListException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.streambase.sb.StreamBaseException
com.streambase.sb.StreamBaseListException
- All Implemented Interfaces:
com.streambase.sb.util.LocatedItem
,Serializable
An exception that contains a list of exceptions
- See Also:
-
Constructor Summary
ConstructorDescriptionStreamBaseListException
(String message) StreamBaseListException with given message, no location infoStreamBaseListException
(String message, com.streambase.sb.util.LocatedItem location) StreamBaseListException with given message.StreamBaseListException
(String message, com.streambase.sb.util.LocatedItem location, Throwable cause) StreamBaseListException with given message.StreamBaseListException
(String message, Throwable cause) StreamBaseListException with given message.StreamBaseListException
(String message, List<T> causes) StreamBaseListException with given message.StreamBaseListException
(String message, T... causes) StreamBaseListException with given message.StreamBaseListException
(Throwable cause) StreamBaseListException with given cause. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the List of all causes, never nullvoid
void
Methods inherited from class com.streambase.sb.StreamBaseException
asXmlStringSingle, asXmlStringStrict, asXmlStringStrict, equals, getParams, hashCode
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString
-
Constructor Details
-
StreamBaseListException
StreamBaseListException with given message, no location info- Parameters:
message
- the message
-
StreamBaseListException
StreamBaseListException with given cause. Location set to Location from cause- Parameters:
cause
- the wrapped exception
-
StreamBaseListException
StreamBaseListException with given message. Location set to Location from cause- Parameters:
message
- the messagecause
- the wrapped exception
-
StreamBaseListException
public StreamBaseListException(String message, com.streambase.sb.util.LocatedItem location, Throwable cause) StreamBaseListException with given message. Location set to given location- Parameters:
message
- the messagelocation
- the location of the exceptioncause
- the wrapped exception
-
StreamBaseListException
StreamBaseListException with given message. Location set to given location- Parameters:
message
- the messagelocation
- the location of the exception
-
StreamBaseListException
StreamBaseListException with given message. Location set to the first exception in the list of causes that has a location- Type Parameters:
T
- cause exception type- Parameters:
message
- the messagecauses
- a list of causes
-
StreamBaseListException
StreamBaseListException with given message. Location set to the first exception in the list of causes that has a location- Type Parameters:
T
- cause exception type- Parameters:
message
- the messagecauses
- a list of causes
-
-
Method Details
-
getCauses
Retrieve the List of all causes, never null- Returns:
- a list of causes as Throwables
-
getMessage
- Overrides:
getMessage
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-
printStackTrace
- Overrides:
printStackTrace
in classThrowable
-