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 aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • IORuntimeException

      public IORuntimeException(String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new open exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • IORuntimeException

      public IORuntimeException(String aMessage, Throwable aCause)
      Instantiates a new open exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • IORuntimeException

      public IORuntimeException(String aMessage)
      Instantiates a new open exception.
      Parameters:
      aMessage - The aMessage describing this exception.
    • IORuntimeException

      public IORuntimeException(Throwable aCause, String aErrorCode)
      Instantiates a new open exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • IORuntimeException

      public IORuntimeException(Throwable aCause)
      Instantiates a new open exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.
  • 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 aMessage (multi-language support) from a language pack instead of just providing the single language aMessage as being stored by the default exceptions.
      Specified by:
      getErrorCode in interface ErrorCodeAccessor
      Overrides:
      getErrorCode in class AbstractRuntimeException
      Returns:
      The exception code in question.