|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
bcds.tools.ArgsParserException
public class ArgsParserException
Exception class for ArgsParser
.
Nested Class Summary | |
---|---|
static class |
ArgsParserException.ErrorCode
Lists the error codes that ArgsParser can include in an
ArgsParserException as an indication of the cause of the error. |
Constructor Summary | |
---|---|
ArgsParserException(ArgsParserException.ErrorCode err,
java.lang.String msg)
Creates an instance with the given error code and message. |
|
ArgsParserException(ArgsParserException.ErrorCode err,
java.lang.String fmt,
java.lang.Object... message)
Creates an instance with the given error code and formatted message. |
Method Summary | |
---|---|
ArgsParserException.ErrorCode |
getErrorCode()
Returns the error code associated to this exception. |
boolean |
isBadUsage()
Returns true if this object can be considered an indicator of bad usage. |
java.lang.String |
toString()
Returns the exception's message and the error code in parenthesis. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArgsParserException(ArgsParserException.ErrorCode err, java.lang.String msg)
public ArgsParserException(ArgsParserException.ErrorCode err, java.lang.String fmt, java.lang.Object... message)
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Throwable
public ArgsParserException.ErrorCode getErrorCode()
public boolean isBadUsage()
In this context, "bad usage" means when such an error occurs, typically the user needs help with usage (syntax, examples, etc.).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |