Class ArgsSyntaxException

All Implemented Interfaces:
Serializable, ArgsAccessor, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap
Direct Known Subclasses:
AmbiguousArgsException, ParseArgsException, SuperfluousArgsException, UnknownArgsException

public class ArgsSyntaxException extends CliException.ConsoleArgsException
Thrown in case of a command line arguments mismatch regarding provided and expected args.
See Also:
  • Constructor Details

    • ArgsSyntaxException

      public ArgsSyntaxException(String[] aArgs, String aMessage, String aErrorCode)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • ArgsSyntaxException

      public ArgsSyntaxException(String[] aArgs, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • ArgsSyntaxException

      public ArgsSyntaxException(String[] aArgs, String aMessage, Throwable aCause)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • ArgsSyntaxException

      public ArgsSyntaxException(String[] aArgs, String aMessage)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aMessage - The aMessage describing this exception.
    • ArgsSyntaxException

      public ArgsSyntaxException(String[] aArgs, Throwable aCause, String aErrorCode)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • ArgsSyntaxException

      public ArgsSyntaxException(String[] aArgs, Throwable aCause)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aCause - The Throwable (Exception) causing this exception.