Class ArgsMismatchException

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

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

    • ArgsMismatchException

      public ArgsMismatchException​(String[] aArgs, String aMessage, String aErrorCode)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aMessage - the message
      aErrorCode - the error code
    • ArgsMismatchException

      public ArgsMismatchException​(String[] aArgs, String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aMessage - the message
      aCause - the cause
      aErrorCode - the error code
    • ArgsMismatchException

      public ArgsMismatchException​(String[] aArgs, String message, Throwable cause)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      message - the message
      cause - the cause
    • ArgsMismatchException

      public ArgsMismatchException​(String[] aArgs, String message)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      message - the message
    • ArgsMismatchException

      public ArgsMismatchException​(String[] aArgs, Throwable aCause, String aErrorCode)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      aCause - the cause
      aErrorCode - the error code
    • ArgsMismatchException

      public ArgsMismatchException​(String[] aArgs, Throwable cause)
      Instantiates a new args mismatch exception.
      Parameters:
      aArgs - the args
      cause - the cause