Class CliException.CliArgsException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.refcodes.exception.AbstractException
org.refcodes.cli.CliException
org.refcodes.cli.CliException.CliArgsException
All Implemented Interfaces:
Serializable, ArgsAccessor, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap
Direct Known Subclasses:
ArgsSyntaxException
Enclosing class:
CliException

public abstract static class CliException.CliArgsException extends CliException implements ArgsAccessor
This abstract exception is the base exception for all command line argument related exceptions.
See Also:
  • Field Details

    • _args

      protected String[] _args
  • Constructor Details

    • CliArgsException

      public CliArgsException(String aMessage, String[] aArgs)
      Parameters:
      aArgs - The command line arguments involved in this exception.
    • CliArgsException

      public CliArgsException(String aMessage, String[] aArgs, String aErrorCode)
      Parameters:
      aArgs - The command line arguments involved in this exception.
    • CliArgsException

      public CliArgsException(String aMessage, String[] aArgs, Throwable aCause)
      Parameters:
      aArgs - The command line arguments involved in this exception.
    • CliArgsException

      public CliArgsException(String aMessage, String[] aArgs, Throwable aCause, String aErrorCode)
      Parameters:
      aArgs - The command line arguments involved in this exception.
    • CliArgsException

      public CliArgsException(String[] aArgs, Throwable aCause)
      Parameters:
      aArgs - The command line arguments involved in this exception.
    • CliArgsException

      public CliArgsException(String[] aArgs, Throwable aCause, String aErrorCode)
      Parameters:
      aArgs - The command line arguments involved in this exception.
  • Method Details

    • getArgs

      public String[] getArgs()
      Retrieves the command line arguments from the args property.
      Specified by:
      getArgs in interface ArgsAccessor
      Returns:
      The command line arguments stored by the args property.
    • getPatternArguments

      public Object[] getPatternArguments()
      Specified by:
      getPatternArguments in interface org.refcodes.exception.Trap