| java.lang.Object java.lang.Throwable java.lang.Exception org.netbeans.api.sendopts.CommandException
CommandException | final public class CommandException extends Exception (Code) | | Signals that something is wrong when processing the command line arguments.
author: Jaroslav Tulach |
Method Summary | |
public int | getExitCode() Returns an exit code for this exception. | public String | getLocalizedMessage() Localized message describing the problem that is usually printed
to the user. |
CommandException | public CommandException(int exitCode)(Code) | | Simple constructor for the CommandException to indicate that a
processing error occurred. The provided exitCode represents
the value to be usually send to as a return value to
System.exit .
Parameters: exitCode - the value, should be different than zero |
CommandException | public CommandException(int exitCode, String locMsg)(Code) | | Creates new exception with a localised message assigned to it.
Parameters: exitCode - exit code to report from the exception Parameters: locMsg - localised message |
CommandException | CommandException(String msg, int exitCode, String locMsg)(Code) | | Creates a new instance of CommandException
|
CommandException | CommandException(String msg, int exitCode)(Code) | | Creates a new instance of CommandException
|
getExitCode | public int getExitCode()(Code) | | Returns an exit code for this exception.
integer exit code, zero if exited correctly |
getLocalizedMessage | public String getLocalizedMessage()(Code) | | Localized message describing the problem that is usually printed
to the user.
|
|
|