Class InitializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.foundation.report.InitializationException
- All Implemented Interfaces:
Serializable
This exception is used to notify that an object could not be created.
- Since:
- 5.1
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionInitializationException
(ErrorCode code, String[] parameters) Constructs the initialization exception with an ErrorCode and parameters.InitializationException
(ErrorCode code, String[] parameters, Severity severity) Constructs the initialization exception with an ErrorCode and parameters.protected
InitializationException
(ErrorMessage message, Severity severity) InitializationException
(InitializationException error, Severity severity, IInitializationReport report) Constructs the initialization exception with another InitializationException and a report containing more information. -
Method Summary
Modifier and TypeMethodDescriptionReturns the error message for this exception.This method return the (optional) initialization report containing more information.This method returns the severity for the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InitializationException
Constructs the initialization exception with an ErrorCode and parameters. The error code can be printed in various languages.- Parameters:
code
- The error code object.parameters
- A string array representing the parameters which can be inserted in the error code object.
-
InitializationException
Constructs the initialization exception with an ErrorCode and parameters. The error code can be printed in various languages.- Parameters:
code
- The error code object.parameters
- A string array representing the parameters which can be inserted in the error code object.severity
- The severity of the exception.
-
InitializationException
public InitializationException(InitializationException error, Severity severity, IInitializationReport report) Constructs the initialization exception with another InitializationException and a report containing more information.- Parameters:
error
- The original InitializationException, may not be null.severity
- The severity, may be null.report
- The (optional) report containing more information, may be null.- Since:
- 8.4.3
-
InitializationException
-
-
Method Details
-
getErrorMessage
Returns the error message for this exception.- Returns:
- The ErrorMessage which can be converted to a string representation.
-
getSeverity
This method returns the severity for the exception.- Returns:
- the severity of the initialization exception.
-
getReport
This method return the (optional) initialization report containing more information.- Returns:
- The report, may be null.
- Since:
- 8.4.3
-