joptsimple
Class OptionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
joptsimple.OptionException
- All Implemented Interfaces:
- Serializable
public abstract class OptionException
- extends RuntimeException
Thrown when a problem occurs during option parsing.
- Version:
- $Id: OptionException.java,v 1.21 2009/08/13 00:34:35 pholser Exp $
- Author:
- Paul Holser
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
OptionException
protected OptionException(Collection<String> options)
OptionException
protected OptionException(Collection<String> options,
Throwable cause)
options
public Collection<String> options()
Gives the option being considered when the exception was created.
- Returns:
- the option being considered when the exception was created
singleOptionMessage
protected final String singleOptionMessage()
singleOptionMessage
protected final String singleOptionMessage(String option)
multipleOptionMessage
protected final String multipleOptionMessage()
Copyright © 2011. All Rights Reserved.