public class ServiceException extends PRRuntimeException
throws
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHORIZATION_CHECK_MSG1 |
static java.lang.String |
AUTHORIZATION_CHECK_MSG2 |
static java.lang.String |
AUTHORIZATION_FAILED_MSG |
static java.lang.String |
COPYRIGHT |
static java.lang.String |
FAIL_AUTHORIZATION_PRIVILEGE |
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
java.lang.String |
getUsageLayer() |
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) |
void |
setUsageLayer(java.lang.String mUsageLayer) |
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 FAIL_AUTHORIZATION_PRIVILEGE
public static final java.lang.String FAILURE_DETAIL_REQUESTOR_EXPIRED
public static final java.lang.String AUTHORIZATION_FAILED_MSG
public static final java.lang.String AUTHORIZATION_CHECK_MSG1
public static final java.lang.String AUTHORIZATION_CHECK_MSG2
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)
public java.lang.String getUsageLayer()
public void setUsageLayer(java.lang.String mUsageLayer)
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()
Copyright © 2018 Pegasystems Inc. All Rights Reserved.