Class IORuntimeException

All Implemented Interfaces:
Serializable, ErrorCodeAccessor, Trap

public class IORuntimeException extends AbstractRuntimeException
Unchecked exception with the same semantics as the IOException.
See Also:
  • Constructor Details

    • IORuntimeException

      public IORuntimeException(String aMessage, String aErrorCode)
      Instantiates a new open exception.
      Parameters:
      aMessage - the message
      aErrorCode - the error code
    • IORuntimeException

      public IORuntimeException(String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new open exception.
      Parameters:
      aMessage - the message
      aCause - the cause
      aErrorCode - the error code
    • IORuntimeException

      public IORuntimeException(String message, Throwable cause)
      Instantiates a new open exception.
      Parameters:
      message - the message
      cause - the cause
    • IORuntimeException

      public IORuntimeException(String message)
      Instantiates a new open exception.
      Parameters:
      message - the message
    • IORuntimeException

      public IORuntimeException(Throwable aCause, String aErrorCode)
      Instantiates a new open exception.
      Parameters:
      aCause - the cause
      aErrorCode - the error code
    • IORuntimeException

      public IORuntimeException(Throwable cause)
      Instantiates a new open exception.
      Parameters:
      cause - the cause
  • Method Details

    • getErrorCode

      public String getErrorCode()
      Provides the according exception code. An exception code can be provided when creating an exception and it can be used by the business logic to retrieve a language depended exception message (multi-language support) from a language pack instead of just providing the single language message as being stored by the default exceptions.
      Specified by:
      getErrorCode in interface ErrorCodeAccessor
      Overrides:
      getErrorCode in class AbstractRuntimeException
      Returns:
      The exception code in question.