Class IllegalSubscriptionPricingStateException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.broadleafcommerce.subscriptionoperation.service.exception.IllegalSubscriptionPricingStateException
All Implemented Interfaces:
Serializable

public class IllegalSubscriptionPricingStateException extends RuntimeException
Thrown when the system state is not valid for a subscription pricing request. For example, this could be caused by a missing CancellationPolicy during a cancellation flow or if the policy found does not allow the item to be cancelled.
Author:
Nathan Moore (nathandmoore)
See Also:
  • Constructor Details

    • IllegalSubscriptionPricingStateException

      public IllegalSubscriptionPricingStateException(String message)
    • IllegalSubscriptionPricingStateException

      public IllegalSubscriptionPricingStateException(String logMessage, String friendlyMessage)
      Creates a new exception, allowing distinct messages to be returned to the caller for display vs logged for debugging.
      Parameters:
      logMessage - Message to log that is more suitable for debugging purposes. May be retrieved by Throwable.getMessage().
      friendlyMessage - Message to return to the caller that is more suitable for display purposes. May be retrieved by getFriendlyMessage().
    • IllegalSubscriptionPricingStateException

      public IllegalSubscriptionPricingStateException(String message, Throwable cause)
    • IllegalSubscriptionPricingStateException

      public IllegalSubscriptionPricingStateException(String logMessage, String friendlyMessage, Throwable cause)
      Creates a new exception, allowing distinct messages to be returned to the caller for display vs logged for debugging.
      Parameters:
      logMessage - Message to log that is more suitable for debugging purposes. May be retrieved by Throwable.getMessage().
      friendlyMessage - Message to return to the caller that is more suitable for display purposes. May be retrieved by getFriendlyMessage().
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
  • Method Details

    • getFriendlyMessage

      public String getFriendlyMessage()
      Message to return to the caller that is more suitable for display purposes.