Class IllegalSubscriptionPricingStateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.broadleafcommerce.subscriptionoperation.service.exception.IllegalSubscriptionPricingStateException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorsConstructorDescriptionIllegalSubscriptionPricingStateException(String logMessage, String friendlyMessage) Creates a new exception, allowing distinct messages to be returned to the caller for display vs logged for debugging.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.IllegalSubscriptionPricingStateException(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionMessage to return to the caller that is more suitable for display purposes.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalSubscriptionPricingStateException
-
IllegalSubscriptionPricingStateException
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 byThrowable.getMessage().friendlyMessage- Message to return to the caller that is more suitable for display purposes. May be retrieved bygetFriendlyMessage().
-
IllegalSubscriptionPricingStateException
-
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 byThrowable.getMessage().friendlyMessage- Message to return to the caller that is more suitable for display purposes. May be retrieved bygetFriendlyMessage().cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). (Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.)
-
-
Method Details
-
getFriendlyMessage
Message to return to the caller that is more suitable for display purposes.
-