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:
Serializable
Direct Known Subclasses:
IllegalOptionParameterException, MissingOptionParameterException, UndefinedOptionException

public class CmdLineException
extends Exception

Signals a failure in the command line parameters processing.

The Throwable.getMessage() method will return a human-readable description of the error, so you should just do

   System.err.println(e.getMessage());
 

Author:
Kohsuke Kawaguchi (kk@kohsuke.org)
See Also:
Serialized Form

Constructor Summary
CmdLineException()
           
CmdLineException(String message)
           
 
Method Summary
 
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()

CmdLineException

public CmdLineException(String message)


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