|
org.netbeans.modules.sendopts/2 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.netbeans.api.sendopts.CommandException
public final class CommandException
Signals that something is wrong when processing the command line arguments.
Constructor Summary | |
---|---|
CommandException(int exitCode)
Simple constructor for the CommandException to indicate that a processing error occurred. |
|
CommandException(int exitCode,
String locMsg)
Creates new exception with a localised message assigned to it. |
Method Summary | |
---|---|
int |
getExitCode()
Returns an exit code for this exception. |
String |
getLocalizedMessage()
Localized message describing the problem that is usually printed to the user. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, 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 |
---|
public CommandException(int exitCode)
exitCode
represents
the value to be usually send to as a return value to System.exit(int)
.
exitCode
- the value, should be different than zeropublic CommandException(int exitCode, String locMsg)
exitCode
- exit code to report from the exceptionlocMsg
- localised messageMethod Detail |
---|
public int getExitCode()
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
|
org.netbeans.modules.sendopts/2 2.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |