Class ExpandException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.aquima.interactions.foundation.exception.AppException
-
- com.aquima.interactions.composer.ComposerException
-
- com.aquima.interactions.composer.exception.ExpandException
-
- All Implemented Interfaces:
Serializable
public class ExpandException extends ComposerException
This exception is used during expansion to pass along an error with additional information about where the error occurred in the page structure.- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExpandException(String elementName, String message)
Constructs the exception with the name of the failed component and the message.ExpandException(String elementName, String message, Throwable cause)
Constructs the exception with the name of the failed component and the message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToCallstack(String name)
This method may be used to add a container name to the stack of containers that included the failed element.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ExpandException
public ExpandException(String elementName, String message)
Constructs the exception with the name of the failed component and the message.- Parameters:
elementName
- The name of the component where the error originated.message
- The message explaining the error.
-
ExpandException
public ExpandException(String elementName, String message, Throwable cause)
Constructs the exception with the name of the failed component and the message.- Parameters:
elementName
- The name of the component where the error originated.message
- The message explaining the error.cause
- The cause of the error.
-
-
Method Detail
-
addToCallstack
public void addToCallstack(String name)
This method may be used to add a container name to the stack of containers that included the failed element.- Parameters:
name
- The name of the container that should be added.
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-