Serializable
public final class ProgramDieException extends RuntimeException
Program
has terminated.
Typically the reason message, if specified, is printed on the standard error stream, and the VM, if its sole purpose is to run the program, is caused to exit with the specified exit status.
Constructor | Description |
---|---|
ProgramDieException(int exitStatus) |
Constructs an instance with the specified exit status.
|
ProgramDieException(String message,
int exitStatus) |
Constructs an instance with the specified reason message and exit status.
|
ProgramDieException(String message,
String localizedMessage,
int exitStatus) |
Constructs an instance with the specified reason message, localized reason
message, and exit status.
|
Modifier and Type | Method | Description |
---|---|---|
int |
exitStatus() |
Returns the exit status of the program.
|
String |
getLocalizedMessage() |
Returns the localized reason message as specified at instance creation
time, falling back to the non-localized reason message if there is no
localized reason message.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ProgramDieException(int exitStatus)
exitStatus
- the exit status of the programpublic ProgramDieException(String message, int exitStatus)
message
- the reason message; may be null
exitStatus
- the exit status of the programpublic ProgramDieException(String message, String localizedMessage, int exitStatus)
message
- the reason message; may be null
localizedMessage
- the localized reason message; may be null
exitStatus
- the exit status of the programpublic String getLocalizedMessage()
getLocalizedMessage
in class Throwable
null
);
otherwise the non-localized reason message (which may be
null
)public int exitStatus()