public abstract class TaurusException
extends java.lang.Exception
| Constructor and Description |
|---|
TaurusException(java.lang.String pMsg)
Constructs a new exception with the specified detail message.
|
TaurusException(java.lang.String pMsg,
java.lang.Throwable pE)
Constructs a new exception with the specified detail message and cause.
|
TaurusException(java.lang.String pMsg,
java.lang.Throwable pE,
boolean pPreferExceptionMessage)
Constructs a new exception with the specified detail message, cause and
prefer exception message flag.
|
TaurusException(java.lang.Throwable pE)
Constructs a new exception with the specified cause.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCustomErrorMessage()
Gets the custom error message.
|
boolean |
isPreferExceptionMessage()
Gets whether the preferExceptionMessage flag is set to
true
or false. |
void |
setCustomErrorMessage(java.lang.String pCustomErrorMessage)
Sets the custom error message.
|
void |
setPreferExceptionMessage(boolean pPreferExceptionMessage)
Sets the preferExceptionMessage flag.
|
public TaurusException(java.lang.String pMsg,
java.lang.Throwable pE)
pMsg - the messagepE - the causepublic TaurusException(java.lang.String pMsg)
pMsg - the messagepublic TaurusException(java.lang.Throwable pE)
pE - the causepublic TaurusException(java.lang.String pMsg,
java.lang.Throwable pE,
boolean pPreferExceptionMessage)
true,
the message will be the preferred message for the AWM error dialog. Else
the last message in the exception hierarchy is used as message in the
error dialog.pMsg - the messagepE - the causepPreferExceptionMessage - whether the message of this TaurusException should be
the preferred message to be displayed in the
TaurusErrorDialog. Else the last message in the exception
hierarchy is used as message in the error dialog.public boolean isPreferExceptionMessage()
true
or false. If this flag is set to true, the
message will be the preferred message for the AWM error dialog. Else the
last message in the exception hierarchy is used as message in the error
dialog.public void setPreferExceptionMessage(boolean pPreferExceptionMessage)
true, the message of this exception will be the preferred
message for the AWM error dialog. Else the last message in the exception
hierarchy is used as message in the error dialog.pPreferExceptionMessage - sets the preferException message flag.public java.lang.String getCustomErrorMessage()
public void setCustomErrorMessage(java.lang.String pCustomErrorMessage)
pCustomErrorMessage - the custom error message to setCopyright © 2015 Micro Focus GmbH. All rights reserved.