public class ExitException extends SecurityException
NoExitSecurityManager
,
Permissions
,
Serialized FormConstructor and Description |
---|
ExitException(int status)
Constructs an exit exception.
|
ExitException(String msg,
int status)
Constructs an exit exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatus()
The status code returned by System.exit()
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toString
public ExitException(int status)
status
- the status code returned via System.exit()public ExitException(String msg, int status)
msg
- the message to be displayed.status
- the status code returned via System.exit()