public class SubscriptionException extends AbstractBusinessObjectDocumentException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
CHANGE_STATUS_CODE_VALUE_FOR_ERROR, ERROR_COUNT, ERROR_COUNT_KEY, MESSAGEKEY_ERRORCODE_SEPARATOR
Constructor and Description |
---|
SubscriptionException(ChangeStatusType changeStatus,
VerbType verb,
java.util.List subscriptions)
Creates an instance of the Subscription exception.
|
SubscriptionException(java.util.List clientErrors)
Creates an instance of the Subscription exception.
|
SubscriptionException(java.lang.String key,
java.lang.String value)
Creates an instance of the Subscription exception with the error key and value.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getSubscription()
Returns the Subscription that is associated with the response of the request.
|
addClientError, getChangeStatus, getClientErrors, getLocalizedMessage, getMessage, getVerb
public static final java.lang.String COPYRIGHT
public SubscriptionException(ChangeStatusType changeStatus, VerbType verb, java.util.List subscriptions)
changeStatus
- The error information that is contained in the ChangeStatus
element of the respond or acknowledge verb.verb
- The returning verb.subscriptions
- The list of Subscription that is associated with the response.public SubscriptionException(java.util.List clientErrors)
clientErrors
- The client errors to associate with the exception. These client
error represent client side parameter validation that cause the exception.public SubscriptionException(java.lang.String key, java.lang.String value)
key
- The name of the parameter which caused the exceptionvalue
- The parameter value which caused the exception