Class ContainerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.portal.exception.ContainerException
- All Implemented Interfaces:
Serializable
Exception class that can be used in containers to indicate that the processing (handle) failed.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionContainerException
(String containerName, IMultilingualText message) Constructs a container exception for a container with a text object explaining the cause of the error.ContainerException
(String containerName, IMultilingualText message, Throwable error) Constructs a container exception for a conatiner with a text object and a throwable explaining the cause of the error.ContainerException
(String containerName, String message) -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the name of the container that generated the exception.This method returns the multilingual error message of the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContainerException
-
ContainerException
Constructs a container exception for a container with a text object explaining the cause of the error.- Parameters:
containerName
- The name of the container where the error occurred.message
- Text object containing additional information about the cause of the error.
-
ContainerException
Constructs a container exception for a conatiner with a text object and a throwable explaining the cause of the error.- Parameters:
containerName
- The name of the container where the error occurred.message
- Text object containing additional information about the cause of the error.error
- The original exception (may be null).
-
-
Method Details
-
getContainerName
This method returns the name of the container that generated the exception.- Returns:
- the name of the container that generated the exception.
-
getErrorMessage
This method returns the multilingual error message of the exception.- Returns:
- the multilingual error message of the exception.
-