Class CliException.ConsoleCliException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.cli.CliException
org.refcodes.cli.CliException.ConsoleCliException
All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap, org.refcodes.mixin.StatusCodeAccessor<org.refcodes.data.ExitCode>
Enclosing class:
CliException

public abstract static class CliException.ConsoleCliException extends CliException implements org.refcodes.mixin.StatusCodeAccessor<org.refcodes.data.ExitCode>
The Class ConsoleCliException.
See Also:
  • Constructor Details

    • ConsoleCliException

      public ConsoleCliException(org.refcodes.data.ExitCode aExitCode, String aMessage)
      Instantiates a new console cli exception.
      Parameters:
      aExitCode - the exit code
      aMessage - The aMessage describing this exception.
    • ConsoleCliException

      public ConsoleCliException(org.refcodes.data.ExitCode aExitCode, String aMessage, String aErrorCode)
      Instantiates a new console cli exception.
      Parameters:
      aExitCode - the exit code
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • ConsoleCliException

      public ConsoleCliException(org.refcodes.data.ExitCode aExitCode, String aMessage, Throwable aCause)
      Instantiates a new console cli exception.
      Parameters:
      aExitCode - the exit code
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • ConsoleCliException

      public ConsoleCliException(org.refcodes.data.ExitCode aExitCode, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new console cli exception.
      Parameters:
      aExitCode - the exit code
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • ConsoleCliException

      public ConsoleCliException(org.refcodes.data.ExitCode aExitCode, Throwable aCause)
      Instantiates a new console cli exception.
      Parameters:
      aExitCode - the exit code
      aCause - The Throwable (Exception) causing this exception.
    • ConsoleCliException

      public ConsoleCliException(org.refcodes.data.ExitCode aExitCode, Throwable aCause, String aErrorCode)
      Instantiates a new console cli exception.
      Parameters:
      aExitCode - the exit code
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
  • Method Details

    • getStatusCode

      public org.refcodes.data.ExitCode getStatusCode()
      Gets the status code.
      Specified by:
      getStatusCode in interface org.refcodes.mixin.StatusCodeAccessor<org.refcodes.data.ExitCode>
      Returns:
      the status code