Class CheckoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.broadleafcommerce.cartoperation.exception.CheckoutException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CartFinalizationException,CheckoutCompletionMessageException,CheckoutRollbackException,CheckoutWorkflowException
public class CheckoutException extends RuntimeException
Thrown when an issue is encountered during the execution of aCheckoutWorkflow- Author:
- Chris Kittrell (ckittrell)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CheckoutException(String failureType, String message, CheckoutProcessDto checkoutProcessDto)CheckoutException(String failureType, String message, Throwable cause, CheckoutProcessDto checkoutProcessDto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getAdditionalInfo()The map that can be used to specify the additional info for this exception.com.broadleafcommerce.cart.client.domain.CartgetCart()Convenient method to get theCartfromcheckoutProcessDto.CheckoutProcessDtogetCheckoutProcessDto()TheCheckoutProcessDtocontaining the details of the checkout where exception was thrown.StringgetFailureType()The category of workflow failure that caused this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CheckoutException
public CheckoutException(String failureType, String message, CheckoutProcessDto checkoutProcessDto)
-
CheckoutException
public CheckoutException(String failureType, String message, Throwable cause, CheckoutProcessDto checkoutProcessDto)
-
-
Method Detail
-
getCart
public com.broadleafcommerce.cart.client.domain.Cart getCart()
Convenient method to get theCartfromcheckoutProcessDto.- Returns:
- the
CartfromcheckoutProcessDto
-
getCheckoutProcessDto
public CheckoutProcessDto getCheckoutProcessDto()
TheCheckoutProcessDtocontaining the details of the checkout where exception was thrown.- Returns:
- The
CheckoutProcessDtocontaining the details of the checkout where exception was thrown.
-
getFailureType
public String getFailureType()
The category of workflow failure that caused this exception.- Returns:
- The category of workflow failure that caused this exception.
- See Also:
CheckoutFailureType
-
-