Class SysException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.SysException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ConversionException
,DecisionTreeNotExposedException
,EmptySymptomException
,InvalidListenerException
,InvalidStateException
,LexerFailureException
,LicenseParseException
,ParseException
,PatternException
,UnhandledException
,UnknownPropertyException
,UnknownTypeException
,XmlException
Base class for system exceptions. The system exception is used for exception that are deemed fatal, and thus do not
need to be handled.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSysException
(String message) Basic constructor with only a message explaining the cause of the error.SysException
(String message, Throwable cause) Constructor with both a message and an exception explaining the cause of the error.SysException
(Throwable cause) Constructor with an exception explaining the cause of the error. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SysException
Basic constructor with only a message explaining the cause of the error.- Parameters:
message
- The message explaining the error that occurred.
-
SysException
Constructor with an exception explaining the cause of the error.- Parameters:
cause
- The original cause of the error.
-
SysException
Constructor with both a message and an exception explaining the cause of the error.- Parameters:
message
- The message explaining the error that occurred.cause
- The original cause of the error.
-
-
Method Details
-
raise
This method will raise a SysException for the given message and cause. If the cause is a SysException or wraps a SysException, then the cause will be re-thrown and the message will be discarded.- Parameters:
message
- Message explaining the cause of the error.cause
- The actual cause of the error.- Throws:
SysException
- A system exception for the specified parameters.
-
raise
This method will raise a SysException for the given cause. If the cause is a SysException or wraps a SysException, then the cause will be re-thrown.- Parameters:
cause
- The actual cause of the error.- Throws:
SysException
- A system exception for the specified parameters.
-