Package org.refcodes.console
Class ArgsMismatchException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.refcodes.exception.AbstractException
-
- org.refcodes.console.ConsoleException
-
- org.refcodes.console.ConsoleException.ConsoleArgsException
-
- org.refcodes.console.ArgsMismatchException
-
- All Implemented Interfaces:
ArgsAccessor
- Direct Known Subclasses:
AmbiguousArgsException
,ParseArgsException
,SuperfluousArgsException
,UnknownArgsException
public class ArgsMismatchException extends ConsoleException.ConsoleArgsException
Thrown in case a command line arguments mismatch regarding provided and expected args.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.console.ArgsAccessor
ArgsAccessor.ArgsMutator, ArgsAccessor.ArgsProperty
-
Nested classes/interfaces inherited from class org.refcodes.console.ConsoleException
ConsoleException.ConsoleArgsException, ConsoleException.ConsoleCliException
-
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
-
-
Constructor Summary
Constructors Constructor Description ArgsMismatchException(java.lang.String[] aArgs, java.lang.String message)
Instantiates a new args mismatch exception.ArgsMismatchException(java.lang.String[] aArgs, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new args mismatch exception.ArgsMismatchException(java.lang.String[] aArgs, java.lang.String message, java.lang.Throwable cause)
Instantiates a new args mismatch exception.ArgsMismatchException(java.lang.String[] aArgs, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new args mismatch exception.ArgsMismatchException(java.lang.String[] aArgs, java.lang.Throwable cause)
Instantiates a new args mismatch exception.ArgsMismatchException(java.lang.String[] aArgs, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new args mismatch exception.
-
Method Summary
-
Methods inherited from class org.refcodes.console.ConsoleException.ConsoleArgsException
getArgs
-
-
-
-
Constructor Detail
-
ArgsMismatchException
public ArgsMismatchException(java.lang.String[] aArgs, java.lang.String aMessage, java.lang.String aErrorCode)
Instantiates a new args mismatch exception.- Parameters:
aArgs
- the argsaMessage
- the messageaErrorCode
- the error code
-
ArgsMismatchException
public ArgsMismatchException(java.lang.String[] aArgs, java.lang.String aMessage, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new args mismatch exception.- Parameters:
aArgs
- the argsaMessage
- the messageaCause
- the causeaErrorCode
- the error code
-
ArgsMismatchException
public ArgsMismatchException(java.lang.String[] aArgs, java.lang.String message, java.lang.Throwable cause)
Instantiates a new args mismatch exception.- Parameters:
aArgs
- the argsmessage
- the messagecause
- the cause
-
ArgsMismatchException
public ArgsMismatchException(java.lang.String[] aArgs, java.lang.String message)
Instantiates a new args mismatch exception.- Parameters:
aArgs
- the argsmessage
- the message
-
ArgsMismatchException
public ArgsMismatchException(java.lang.String[] aArgs, java.lang.Throwable aCause, java.lang.String aErrorCode)
Instantiates a new args mismatch exception.- Parameters:
aArgs
- the argsaCause
- the causeaErrorCode
- the error code
-
ArgsMismatchException
public ArgsMismatchException(java.lang.String[] aArgs, java.lang.Throwable cause)
Instantiates a new args mismatch exception.- Parameters:
aArgs
- the argscause
- the cause
-
-