de.qfs.lib.util
Class UnexpectedParameterException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--de.qfs.lib.util.MalformedArgumentListException
|
+--de.qfs.lib.util.UnexpectedParameterException
- All Implemented Interfaces:
- java.io.Serializable
- public class UnexpectedParameterException
- extends MalformedArgumentListException
This exception is thrown by ArgsParser.parse
when it encouters an option that may not have a
parameter, but one was given on the command line or in the options file.
- Version:
- $Revision: 1.2 $
- Author:
- Gregor Schmid
- See Also:
- Serialized Form
Constructor Summary |
UnexpectedParameterException(java.lang.String message,
java.lang.String option,
java.lang.String parameter)
Create a new UnexpectedParameterException. |
Method Summary |
java.lang.String |
getParameter()
Get the parameter that caused the exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UnexpectedParameterException
public UnexpectedParameterException(java.lang.String message,
java.lang.String option,
java.lang.String parameter)
- Create a new UnexpectedParameterException.
- Parameters:
message
- A message explaining the reason for the exception.option
- The option that caused the exception.parameter
- The parameter that caused the exception.
getParameter
public java.lang.String getParameter()
- Get the parameter that caused the exception.
- Returns:
- The parameter that caused the exception.