public class TerminateToolException extends RuntimeException
The exception should be thrown to indicate that the VM should be terminated with
the specified error code, instead of just calling System.exit(int).
The return code convention is to return:
0 in case of graceful termination
-1 in case of runtime errors, such as IOException
1 in case of invalid parameters.
Note: Do not use this class, internal use only!
| Constructor and Description |
|---|
TerminateToolException(int code) |
TerminateToolException(int code,
String message) |
TerminateToolException(int code,
String message,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic TerminateToolException(int code,
String message)
public TerminateToolException(int code)
public int getCode()
public String getMessage()
getMessage in class ThrowableCopyright © 2017 The Apache Software Foundation. All rights reserved.