public class ExitCalledException extends SecurityException
ExitPreventingSecurityManager
to turn System.exit() calls into
exceptions inside test cases.Constructor and Description |
---|
ExitCalledException(int status)
Create a new exception with the given status code--that is, the
parameter value passed to the System.exit() call this exception
represents.
|
Modifier and Type | Method and Description |
---|---|
int |
getStatus()
Get the exit status for the System.exit() call represented by this
exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString