org.kohsuke.args4j
Class CmdLineException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.kohsuke.args4j.CmdLineException
All Implemented Interfaces:
java.io.Serializable

public class CmdLineException
extends java.lang.Exception

Signals an error in the user input.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Constructor Summary
CmdLineException(CmdLineParser parser, java.lang.String message)
           
CmdLineException(CmdLineParser parser, java.lang.String message, java.lang.Throwable cause)
           
CmdLineException(CmdLineParser parser, java.lang.Throwable cause)
           
CmdLineException(java.lang.String message)
          Deprecated. Use CmdLineException(CmdLineParser, String)
CmdLineException(java.lang.String message, java.lang.Throwable cause)
          Deprecated. Use CmdLineException(CmdLineParser, String, Throwable)
CmdLineException(java.lang.Throwable cause)
          Deprecated. Use CmdLineException(CmdLineParser, Throwable)
 
Method Summary
 CmdLineParser getParser()
          Obtains the CmdLineParser that triggered an exception.
 
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

CmdLineException

public CmdLineException(java.lang.String message)
Deprecated. Use CmdLineException(CmdLineParser, String)


CmdLineException

public CmdLineException(java.lang.String message,
                        java.lang.Throwable cause)
Deprecated. Use CmdLineException(CmdLineParser, String, Throwable)


CmdLineException

public CmdLineException(java.lang.Throwable cause)
Deprecated. Use CmdLineException(CmdLineParser, Throwable)


CmdLineException

public CmdLineException(CmdLineParser parser,
                        java.lang.String message)

CmdLineException

public CmdLineException(CmdLineParser parser,
                        java.lang.String message,
                        java.lang.Throwable cause)

CmdLineException

public CmdLineException(CmdLineParser parser,
                        java.lang.Throwable cause)
Method Detail

getParser

public CmdLineParser getParser()
Obtains the CmdLineParser that triggered an exception.

Unless you have legacy OptionHandler that doesn't pass in this information when it throws an exception, this method should always return a non-null value. a



Copyright © 2003-2012 Kohsuke Kawaguchi. All Rights Reserved.