com.pega.pegarules.pub
Class PRAppRuntimeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.pega.pegarules.pub.PRAppRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class PRAppRuntimeException
extends java.lang.RuntimeException

Basic runtime exception used by Non PegaRULES classes. Exceptions of this nature do not have to be declared with throws.

Version:
$Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
Author:
Gabe Ernst-Edwards
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Constructor Summary
PRAppRuntimeException(java.lang.String aRulesetName, double aReason, java.lang.String aMessage)
          Constructor with a message and a cause.
PRAppRuntimeException(java.lang.String aRulesetName, double aReason, java.lang.String aMessage, java.lang.Throwable aCause)
          Constructor with a message and a cause.
 
Method Summary
 double getReason()
           
 java.lang.String getRuleSetName()
           
 java.lang.String toString()
          Returns a (short) description of this throwable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Constructor Detail

PRAppRuntimeException

public PRAppRuntimeException(java.lang.String aRulesetName,
                             double aReason,
                             java.lang.String aMessage)
Constructor with a message and a cause. The severity of this exception defaults to ProcessingStatus.SEVERITY_FAIL.

Parameters:
aRulesetName - the Ruleset that had the event that caused this exception
aReason - a numeric value indicating the nature of the exception
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()).

PRAppRuntimeException

public PRAppRuntimeException(java.lang.String aRulesetName,
                             double aReason,
                             java.lang.String aMessage,
                             java.lang.Throwable aCause)
Constructor with a message and a cause. The severity of this exception defaults to ProcessingStatus.SEVERITY_FAIL.

Parameters:
aRulesetName - the Ruleset that had the event that caused this exception
aReason - a numeric value indicating the nature of the exception
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()).
aCause - the Throwable that caused this exception
Method Detail

toString

public java.lang.String toString()
Returns a (short) description of this throwable. (used by Throwable.printStackTrace to describe the exception)

Overrides:
toString in class java.lang.Throwable
Returns:
a string representation of this throwable.

getReason

public double getReason()

getRuleSetName

public java.lang.String getRuleSetName()


Copyright © 2012 Pegasystems Inc. All Rights Reserved.