Class 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:
  • Constructor Details

    • 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 Details

    • 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 class Throwable