|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
snaq.util.jclap.OptionException
public final class OptionException
Exception for command-line option parsing problems.
Nested Class Summary | |
---|---|
static class |
OptionException.Type
Defines the types of OptionException that exist. |
Constructor Summary | |
---|---|
OptionException(OptionException.Type type,
Option option)
Creates a new OptionException instance. |
|
OptionException(OptionException.Type type,
Option option,
java.lang.String optionValue)
Creates a new OptionException instance. |
|
OptionException(OptionException.Type type,
java.lang.String optionName)
Creates a new OptionException instance. |
|
OptionException(OptionException.Type type,
java.lang.String optionName,
char flag)
Creates a new OptionException instance. |
|
OptionException(OptionException.Type type,
java.lang.String optionName,
java.lang.String optionValue)
Creates a new OptionException instance. |
Method Summary | |
---|---|
java.lang.String |
getLocalizedMessage()
|
java.lang.String |
getMessage()
|
OptionException.Type |
getType()
Returns the type of this OptionException . |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OptionException(OptionException.Type type, Option option, java.lang.String optionValue)
OptionException
instance.
type
- type of OptionException
to create (i.e. reason)option
- Option
instance for which this exception is being createdoptionValue
- value of the option for which this exception is being createdpublic OptionException(OptionException.Type type, java.lang.String optionName, java.lang.String optionValue)
OptionException
instance.
type
- type of OptionException
to create (i.e. reason)optionName
- name of the option for which this exception is being createdoptionValue
- value of the option for which this exception is being createdpublic OptionException(OptionException.Type type, java.lang.String optionName, char flag)
OptionException
instance.
type
- type of OptionException
to create (i.e. reason)optionName
- name of the option for which this exception is being createdflag
- flag character for which this exception is being createdpublic OptionException(OptionException.Type type, Option option)
OptionException
instance.
type
- type of OptionException
to create (i.e. reason)option
- Option
instance for which this exception is being createdpublic OptionException(OptionException.Type type, java.lang.String optionName)
OptionException
instance.
type
- type of OptionException
to create (i.e. reason)optionName
- name of the option for which this exception is being createdMethod Detail |
---|
public OptionException.Type getType()
OptionException
.
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getLocalizedMessage()
getLocalizedMessage
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |