public class PromotionException extends AbstractBusinessObjectDocumentException
CHANGE_STATUS_CODE_VALUE_FOR_ERROR, ERROR_COUNT, ERROR_COUNT_KEY, MESSAGEKEY_ERRORCODE_SEPARATOR
Constructor and Description |
---|
PromotionException(ChangeStatusType changeStatus,
VerbType verb,
java.util.List promotions)
Creates an instance of the Promotion exception.
|
PromotionException(java.util.List clientErrors)
Creates an instance of the Promotion exception.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getPromotion()
Returns the Promotion that is associated with the response of the request.
|
addClientError, getChangeStatus, getClientErrors, getLocalizedMessage, getMessage, getVerb
public PromotionException(ChangeStatusType changeStatus, VerbType verb, java.util.List promotions)
changeStatus
- The error information that is contained in the ChangeStatus
element of the respond or acknowledge verb.verb
- The returning verb.promotions
- The list of Promotion that is associated with the response.public PromotionException(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.