public final class CommandException
extends java.lang.Exception
| Constructor | Description |
|---|---|
CommandException(int exitCode) |
Simple constructor for the CommandException to indicate that a
processing error occurred.
|
CommandException(int exitCode,
java.lang.String locMsg) |
Creates new exception with a localised message assigned to it.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getExitCode() |
Returns an exit code for this exception.
|
java.lang.String |
getLocalizedMessage() |
Localized message describing the problem that is usually printed
to the user.
|
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,
java.lang.String locMsg)
exitCode - exit code to report from the exceptionlocMsg - localised messagepublic int getExitCode()
public java.lang.String getLocalizedMessage()
getLocalizedMessage in class java.lang.ThrowableBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.