|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.pega.pegarules.pub.PRRuntimeException
com.pega.pegarules.pub.services.ServiceException
public class ServiceException
Runtime exception for service rule failures. Exceptions of this
nature do not have to be declared with throws
.
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 |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
public static final java.lang.String FAIL_SERVICE
public static final java.lang.String FAIL_SECURITY
public static final java.lang.String FAIL_MAPPING
public static final java.lang.String FAILURE_DETAIL_REQUESTOR_EXPIRED
Constructor Detail |
---|
public ServiceException()
public ServiceException(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 ServiceException(java.lang.Throwable aCause)
aCause
- the Throwable
that caused this exceptionpublic ServiceException(java.lang.String aMessage, java.lang.Throwable aCause)
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 exceptionpublic ServiceException(java.lang.String aMessage, java.lang.String aErrorType)
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 flowpublic ServiceException(java.lang.String aMessage, java.lang.String aErrorType, java.lang.String aFailureDetail)
public ServiceException(java.lang.String aMessage, java.lang.String aErrorType, java.lang.Throwable aCause)
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 flowaCause
- the Throwable
that caused this exceptionpublic ServiceException(java.lang.String aMessage, java.lang.String aErrorType, java.lang.Throwable aCause, java.lang.String aFailureDetail)
Method Detail |
---|
public void setErrorType(java.lang.String aErrorType)
aErrorType
- public void setFailureDetail(java.lang.String aFailureDetail)
public java.lang.String getErrorType()
public java.lang.String getFailureDetail()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |