Class ContainerException

All Implemented Interfaces:
Serializable

public class ContainerException extends AppException
Exception class that can be used in containers to indicate that the processing (handle) failed.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • ContainerException

      public ContainerException(String containerName, String message)
    • ContainerException

      public ContainerException(String containerName, IMultilingualText message)
      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

      public 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.
      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

      public String getContainerName()
      This method returns the name of the container that generated the exception.
      Returns:
      the name of the container that generated the exception.
    • getErrorMessage

      public IMultilingualText getErrorMessage()
      This method returns the multilingual error message of the exception.
      Returns:
      the multilingual error message of the exception.