Class PromotionException

  • All Implemented Interfaces:

    public class PromotionException
    extends AbstractBusinessObjectDocumentException
    This exception represents a business error to why the request was not process sucessfully. This exception will include the response information so the call can examine the response. The purpose of the exception is a convient way for the client to be notified if there was an error when processing instead of having to examine the result returned from the Promotion facade.
    See Also:
    Serialized Form
    • Constructor Detail

      • PromotionException

        public PromotionException(ChangeStatusType changeStatus,
                                  VerbType verb,
                                  java.util.List promotions)
        Creates an instance of the Promotion exception.
        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.
      • PromotionException

        public PromotionException(java.util.List clientErrors)
        Creates an instance of the Promotion exception.
        clientErrors - The client errors to associate with the exception. These client error represent client side parameter validation that cause the exception.
    • Method Detail

      • getPromotion

        public java.util.List getPromotion()
        Returns the Promotion that is associated with the response of the request.
        The list of Promotion found in the response.