com.pega.pegarules.pub.services
Class ConnectorException

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.ConnectorException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InboundMappingException, IndirectReferenceException, OutboundMappingException, RemoteApplicationException, ResourceUnavailableException

public class ConnectorException
extends PRRuntimeException

Runtime exception for connector 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 VERSION
           
 
Constructor Summary
ConnectorException()
          Default constructor with no message.
ConnectorException(java.lang.String aMessage)
          Constructor with a message.
ConnectorException(java.lang.String aMessage, java.lang.String aHandler)
          Constructor with a message and the name of an error handler flow.
ConnectorException(java.lang.String aMessage, java.lang.String aHandler, java.lang.Throwable aCause)
          Constructor with a message, an error handler, and a cause.
ConnectorException(java.lang.String aMessage, java.lang.Throwable aCause)
          Constructor with a message and a cause.
ConnectorException(java.lang.Throwable aCause)
          Constructor with a root cause.
 
Method Summary
 java.lang.String getHandler()
          Get the name of the flow that the flow harness will use to handle the connection failure.
 void setHandler(java.lang.String aHandler)
          Set the name of the flow that the flow harness will use to handle the connection failure.
 
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
Constructor Detail

ConnectorException

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


ConnectorException

public ConnectorException(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()).

ConnectorException

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

Parameters:
aCause - the Throwable that caused this exception

ConnectorException

public ConnectorException(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

ConnectorException

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

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

ConnectorException

public ConnectorException(java.lang.String aMessage,
                          java.lang.String aHandler,
                          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()).
aHandler - 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
Method Detail

setHandler

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

Parameters:
aHandler -

getHandler

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

Returns:
handler name


Copyright © 2012 Pegasystems Inc. All Rights Reserved.