public class Die
extends java.lang.RuntimeException
TextBuiltin
implementation has
failed during execution.
Typically the stack trace for a Die exception is not shown to the user as it may indicate a simple error condition that the end-user can fix on their own, without needing a screen of Java stack frames.
Modifier and Type | Field and Description |
---|---|
private boolean |
aborted |
private static long |
serialVersionUID |
Constructor and Description |
---|
Die(boolean aborted)
Construct a new exception reflecting the fact that the
command execution has been aborted before running.
|
Die(boolean aborted,
java.lang.Throwable cause)
Construct a new exception reflecting the fact that the command execution
has been aborted before running.
|
Die(java.lang.String why)
Construct a new message explaining what has gone wrong.
|
Die(java.lang.String why,
java.lang.Throwable cause)
Construct a new message explaining what has gone wrong.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAborted()
Check if this exception should cause the execution to be aborted.
|
private static final long serialVersionUID
private boolean aborted
public Die(java.lang.String why)
why
- the message to show to the end-user.public Die(java.lang.String why, java.lang.Throwable cause)
why
- the message to show to the end-user.cause
- why the command has failed.public Die(boolean aborted)
aborted
- boolean indicating the fact the execution has been abortedpublic Die(boolean aborted, java.lang.Throwable cause)
aborted
- boolean indicating the fact the execution has been abortedcause
- can be null