public class UnrecoverableException
extends java.lang.Exception
Constructor and Description |
---|
UnrecoverableException(java.lang.String theCaption,
java.lang.String theMessage)
Create an unrecoverable exception.
|
Modifier and Type | Method and Description |
---|---|
void |
addCaption(java.lang.String theCaption)
Adds a caption to the existing caption for this exception.
|
void |
addMessage(java.lang.String theMessage)
Adds a detailed error message to indicate what caused this exception to
occur.
|
void |
addMessageOnTop(java.lang.String theMessage)
Adds an error message to the top of the message stack.
|
java.lang.String[] |
getCaptions()
Returns all the captions for this exception.
|
java.lang.String[] |
getMessages()
Returns all the error messages that provides the detail on the condition
that caused this exception.
|
public UnrecoverableException(java.lang.String theCaption, java.lang.String theMessage)
theCaption
- The label or title to display for this exception.theMessage
- The details about the condition that caused this exception.public void addCaption(java.lang.String theCaption)
theCaption
- The caption to add.public java.lang.String[] getCaptions()
public void addMessage(java.lang.String theMessage)
theMessage
- The details about the condition that caused this exception.public void addMessageOnTop(java.lang.String theMessage)
theMessage
- The details on the condition that caused this exception.public java.lang.String[] getMessages()