public class TaurusToolException extends TaurusException
When thrown by an IToolExecutor which was executed by AWM, basic tool
descriptor information will be automatically added to the detail message.
setToolDescriptor(ToolDescriptor),
IToolExecutor.execTool(com.microfocus.awm.model.IExecutionContext,
ToolDescriptor, String, org.eclipse.core.runtime.IProgressMonitor),
Serialized Form| Constructor and Description |
|---|
TaurusToolException(java.lang.String pMessage)
Constructs a new exception with the specified detail message.
|
TaurusToolException(java.lang.String pMessage,
java.lang.Throwable pCause)
Constructs a new exception with the specified detail message and cause.
|
TaurusToolException(java.lang.String pMessage,
java.lang.Throwable pCause,
boolean pPreferExceptionMessage)
Constructs a new exception with the specified detail message, cause and
prefer exception message flag.
|
TaurusToolException(java.lang.Throwable pCause)
Constructs a new exception with the specified cause.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getMessage() |
void |
setToolDescriptor(ToolDescriptor pToolDesc)
Sets the tool descriptor for which the exception occurred.
|
getCustomErrorMessage, isPreferExceptionMessage, setCustomErrorMessage, setPreferExceptionMessagepublic TaurusToolException(java.lang.String pMessage,
java.lang.Throwable pCause,
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.pMessage - the messagepCause - the original causepPreferExceptionMessage - whether the message of this TaurusException should be
the preferred message to be displayed in the
TaurusErrorDialog.public TaurusToolException(java.lang.String pMessage,
java.lang.Throwable pCause)
pMessage - the messagepCause - the original causepublic TaurusToolException(java.lang.String pMessage)
pMessage - the messagepublic TaurusToolException(java.lang.Throwable pCause)
pCause - the causepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic void setToolDescriptor(ToolDescriptor pToolDesc)
Client's don't have call this method if the tool descriptor is executed
as a standard modeled AWM action, since it will be done by the
ActionExecutor.
pToolDesc - the tool descriptor to setCopyright © 2015 Micro Focus GmbH. All rights reserved.