- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.carne.util.cmdline.CmdLineException
-
- All Implemented Interfaces:
java.io.Serializable
public class CmdLineException extends java.lang.ExceptionThis Exception indicates an error during command line processing.- See Also:
CmdLineProcessor, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CmdLineException(CmdLineProcessor cmdLine, java.lang.String arg)Constructs a new CmdLineException instance.CmdLineException(CmdLineProcessor cmdLine, java.lang.String arg, java.lang.Throwable cause)Constructs a new CmdLineException instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringarg()Gets the argument string causing the processing failure.java.lang.StringcmdLine()Gets the command line string for which the processing failed.
-
-
-
Constructor Detail
-
CmdLineException
public CmdLineException(CmdLineProcessor cmdLine, java.lang.String arg)
Constructs a new CmdLineException instance.- Parameters:
cmdLine- the CmdLineProcessor throwing this exception.arg- the argument string causing this exception.
-
CmdLineException
public CmdLineException(CmdLineProcessor cmdLine, java.lang.String arg, java.lang.Throwable cause)
Constructs a new CmdLineException instance.- Parameters:
cmdLine- the CmdLineProcessor throwing this exception.arg- the argument string causing this exception.cause- the causing exception.
-
-
Method Detail
-
cmdLine
public java.lang.String cmdLine()
Gets the command line string for which the processing failed.- Returns:
- the command line string for which the processing failed.
-
arg
public java.lang.String arg()
Gets the argument string causing the processing failure.- Returns:
- the argument string causing the processing failure.
-
-