public class PRException
extends java.lang.Exception
throws.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT |
static VicariousThreadLocal<java.lang.Boolean> |
mLookUpRuleMessages |
static java.lang.String |
VERSION |
| Constructor and Description |
|---|
PRException()
Default constructor with no message.
|
PRException(int aSeverity)
Constructor used to specify a severity.
|
PRException(int aSeverity,
java.lang.String aMessageName,
java.lang.String aMessageParms)
Constructor with a severity, message name and message parameters.
|
PRException(int aSeverity,
java.lang.String aMessageName,
java.lang.String aMessageParms,
java.lang.Throwable aCause)
Constructor with a severity, message name, message parameters,
and a causing exception.
|
PRException(java.lang.String aMessage)
Constructor with a message.
|
PRException(java.lang.String aMessageName,
java.lang.String aMessageParms)
Constructor with a message name and message parameters.
|
PRException(java.lang.String aMessageName,
java.lang.String aMessageParms,
java.lang.Throwable t)
Constructor with a message name and message parameters.
|
PRException(java.lang.String aMessage,
java.lang.Throwable aCause)
Creates an exception with a given message,
caused by the given exception or error.
|
PRException(java.lang.Throwable aCause)
Creates an exception that is caused by a particular
Throwable. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isLookUpRuleMessages() |
static boolean |
setLookUpRuleMessages(boolean lookUpRuleMessages) |
java.lang.String |
toString()
Returns a (short) description of this throwable.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public static final VicariousThreadLocal<java.lang.Boolean> mLookUpRuleMessages
public PRException()
public PRException(java.lang.Throwable aCause)
Throwable.aCause - the Throwable that caused this
exceptionpublic PRException(int aSeverity)
aSeverity - severity of this error. See
ProcessingStatus for more options.public PRException(java.lang.String aMessage)
aMessage - key to a Rule-Message instance, or simply
a message. If it isn't a Rule-Message key, an instance may
be written to Log-UndefinedMessages
(see ProcessingStatus.logMissingMessages()).public PRException(java.lang.String aMessage,
java.lang.Throwable aCause)
ProcessingStatus.SEVERITY_FAIL.aCause - the exception or erroraMessage - key to a Rule-Message instance, or simply
a message. If it isn't a Rule-Message key, an instance may
be written to Log-UndefinedMessagesProcessingStatus.logMissingMessages()public PRException(java.lang.String aMessageName,
java.lang.String aMessageParms)
aMessageName - key to a Rule-Message instance, or simply
a message. If it isn't a Rule-Message key, an instance may
be written to Log-UndefinedMessages
(see ProcessingStatus.logMissingMessages()).aMessageParms - parameters to the Rule-Message (may be null)public PRException(java.lang.String aMessageName,
java.lang.String aMessageParms,
java.lang.Throwable t)
aMessageName - key to a Rule-Message instance, or simply
a message. If it isn't a Rule-Message key, an instance may
be written to Log-UndefinedMessages
(see ProcessingStatus.logMissingMessages()).aMessageParms - parameters to the Rule-Message (may be null)t - Cause of exceptionpublic PRException(int aSeverity,
java.lang.String aMessageName,
java.lang.String aMessageParms)
aSeverity - severity of this error. See
ProcessingStatus for more options.aMessageName - key to a Rule-Message instance, or simply
a message. If it isn't a Rule-Message key, an instance may
be written to Log-UndefinedMessages
(see ProcessingStatus.logMissingMessages()).aMessageParms - parameters to the Rule-Message (may be null)public PRException(int aSeverity,
java.lang.String aMessageName,
java.lang.String aMessageParms,
java.lang.Throwable aCause)
aSeverity - severity of this error. See
ProcessingStatus for more options.aMessageName - key to a Rule-Message instance, or simply
a message. If it isn't a Rule-Message key, an instance may
be written to Log-UndefinedMessages
(see ProcessingStatus.logMissingMessages()).aMessageParms - parameters to the Rule-Message (may be null)aCause - public java.lang.String toString()
toString in class java.lang.Throwablepublic static boolean isLookUpRuleMessages()
public static boolean setLookUpRuleMessages(boolean lookUpRuleMessages)
Copyright © 2014 Pegasystems Inc. All Rights Reserved.