|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gui.dialog.DialogContentPane.CheckError
public static class DialogContentPane.CheckError
A CheckError is used to set error conditions that prohibit operations. The error conditions may contain a message that is dispayed to the user and may do some additional actions.
Field Summary | |
---|---|
private int |
m_logType
|
private java.lang.String |
m_strMessage
|
private java.lang.Throwable |
m_throwable
|
Constructor Summary | |
---|---|
DialogContentPane.CheckError()
Creates a new CheckError that does not show any message to the user. |
|
DialogContentPane.CheckError(java.lang.String a_strMessage,
int a_logType)
A new CheckError with a message for the user. |
|
DialogContentPane.CheckError(java.lang.String a_strMessage,
int a_logType,
java.lang.Throwable a_throwable)
A new CheckError with a message for the user. |
Method Summary | |
---|---|
void |
doErrorAction()
The action that is done if this error is handled by any method. |
int |
getLogType()
Returns the LogType of this CheckError. |
java.lang.String |
getMessage()
Returns the message to display to the user or null if this CheckError does not contain any message. |
java.lang.Throwable |
getThrowable()
Returns the throwable to be logged or null if this CheckError does not contain any Throwable. |
boolean |
hasDisplayableErrorMessage()
Returns if a user-displayable error message can be extracted from this CheckError. |
void |
undoErrorAction()
The action that is done to reset the state before the call of doErrorAction(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String m_strMessage
private int m_logType
private java.lang.Throwable m_throwable
Constructor Detail |
---|
public DialogContentPane.CheckError()
public DialogContentPane.CheckError(java.lang.String a_strMessage, int a_logType)
a_strMessage
- a message for the user; if empty, no message is displayed; if null,
an error message is auto-generateda_logType
- the LogType for this errorpublic DialogContentPane.CheckError(java.lang.String a_strMessage, int a_logType, java.lang.Throwable a_throwable)
a_strMessage
- a message for the user; if empty, no message is displayed; if null,
an error message is auto-generateda_logType
- the LogType for this errora_throwable
- a throwable that should be loggedMethod Detail |
---|
public void doErrorAction()
public void undoErrorAction()
public final int getLogType()
public final java.lang.Throwable getThrowable()
public final java.lang.String getMessage()
public final boolean hasDisplayableErrorMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |