com.pega.pegarules.pub.services
Class ServiceException

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

public class ServiceException
extends PRRuntimeException

Runtime exception for service rule failures. 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:
Peter Tandara-Kuhns
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String FAIL_MAPPING
           
static java.lang.String FAIL_SECURITY
           
static java.lang.String FAIL_SERVICE
           
static java.lang.String FAILURE_DETAIL_REQUESTOR_EXPIRED
           
static java.lang.String VERSION
           
 
Constructor Summary
ServiceException()
          Default constructor with no message.
ServiceException(java.lang.String aMessage)
          Constructor with a message.
ServiceException(java.lang.String aMessage, java.lang.String aErrorType)
          Constructor with a message and the name of an error handler flow.
ServiceException(java.lang.String aMessage, java.lang.String aErrorType, java.lang.String aFailureDetail)
           
ServiceException(java.lang.String aMessage, java.lang.String aErrorType, java.lang.Throwable aCause)
          Constructor with a message, an error handler, and a cause.
ServiceException(java.lang.String aMessage, java.lang.String aErrorType, java.lang.Throwable aCause, java.lang.String aFailureDetail)
           
ServiceException(java.lang.String aMessage, java.lang.Throwable aCause)
          Constructor with a message and a cause.
ServiceException(java.lang.Throwable aCause)
          Constructor with a root cause.
 
Method Summary
 java.lang.String getErrorType()
          Get the name of the flow that the flow harness will use to handle the connection failure.
 java.lang.String getFailureDetail()
           
 void setErrorType(java.lang.String aErrorType)
          Set the name of the flow that the flow harness will use to handle the connection failure.
 void setFailureDetail(java.lang.String aFailureDetail)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
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

FAIL_SERVICE

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

FAIL_SECURITY

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

FAIL_MAPPING

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

FAILURE_DETAIL_REQUESTOR_EXPIRED

public static final java.lang.String FAILURE_DETAIL_REQUESTOR_EXPIRED
See Also:
Constant Field Values
Constructor Detail

ServiceException

public ServiceException()
Default constructor with no message. The severity of this exception defaults to ProcessingStatus.SEVERITY_FAIL.


ServiceException

public ServiceException(java.lang.String aMessage)
Constructor with a message.

Parameters:
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()).

ServiceException

public ServiceException(java.lang.Throwable aCause)
Constructor with a root cause.

Parameters:
aCause - the Throwable that caused this exception

ServiceException

public ServiceException(java.lang.String aMessage,
                        java.lang.Throwable aCause)
Constructor with a message and a cause.

Parameters:
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

ServiceException

public ServiceException(java.lang.String aMessage,
                        java.lang.String aErrorType)
Constructor with a message and the name of an error handler flow.

Parameters:
aMessage - 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()).
aErrorType - key to a Rule-Obj-Flow instance that will handle the exception when the connector rule is invoked from a flow

ServiceException

public ServiceException(java.lang.String aMessage,
                        java.lang.String aErrorType,
                        java.lang.String aFailureDetail)

ServiceException

public ServiceException(java.lang.String aMessage,
                        java.lang.String aErrorType,
                        java.lang.Throwable aCause)
Constructor with a message, an error handler, and a cause.

Parameters:
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()).
aErrorType - key to a Rule-Obj-Flow instance that will handle the exception when the connector rule is invoked from a flow
aCause - the Throwable that caused this exception

ServiceException

public ServiceException(java.lang.String aMessage,
                        java.lang.String aErrorType,
                        java.lang.Throwable aCause,
                        java.lang.String aFailureDetail)
Method Detail

setErrorType

public void setErrorType(java.lang.String aErrorType)
Set the name of the flow that the flow harness will use to handle the connection failure.

Parameters:
aErrorType -

setFailureDetail

public void setFailureDetail(java.lang.String aFailureDetail)

getErrorType

public java.lang.String getErrorType()
Get the name of the flow that the flow harness will use to handle the connection failure.

Returns:
error type

getFailureDetail

public java.lang.String getFailureDetail()


Copyright © 2012 Pegasystems Inc. All Rights Reserved.