joptsimple
Class OptionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by joptsimple.OptionException
All Implemented Interfaces:
java.io.Serializable

public abstract class OptionException
extends java.lang.RuntimeException

Thrown when a problem occurs during option parsing.

Author:
Paul Holser
See Also:
Serialized Form

Constructor Summary
protected OptionException(java.util.Collection<java.lang.String> options)
           
protected OptionException(java.util.Collection<java.lang.String> options, java.lang.Throwable cause)
           
 
Method Summary
protected  java.lang.String multipleOptionMessage()
           
 java.util.Collection<java.lang.String> options()
          Gives the option being considered when the exception was created.
protected  java.lang.String singleOptionMessage()
           
protected  java.lang.String singleOptionMessage(java.lang.String option)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OptionException

protected OptionException(java.util.Collection<java.lang.String> options)

OptionException

protected OptionException(java.util.Collection<java.lang.String> options,
                          java.lang.Throwable cause)
Method Detail

options

public java.util.Collection<java.lang.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 java.lang.String singleOptionMessage()

singleOptionMessage

protected final java.lang.String singleOptionMessage(java.lang.String option)

multipleOptionMessage

protected final java.lang.String multipleOptionMessage()


Copyright © 2011. All Rights Reserved.