Class CreditAccountExceptionAdvisor
java.lang.Object
com.broadleafcommerce.creditaccount.web.endpoint.exception.CreditAccountExceptionAdvisor
@RestControllerAdvice(annotations=org.springframework.web.bind.annotation.ResponseBody.class)
public class CreditAccountExceptionAdvisor
extends Object
General exception handler registry for handlers not exclusive to a single controller.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtilsorg.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleInvalidCreditAccountTypeException(CreateCreditAccountException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleInvalidTransactionExecutionRequestException(InvalidTransactionExecutionRequestException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError>handleOptimisticLockingFailureException(org.springframework.dao.OptimisticLockingFailureException ex, org.springframework.web.context.request.WebRequest request) protected voidDeprecated, for removal: This API element is subject to removal in a future version.voidsetExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)
-
Constructor Details
-
CreditAccountExceptionAdvisor
public CreditAccountExceptionAdvisor()
-
-
Method Details
-
handleInvalidCreditAccountTypeException
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidCreditAccountTypeException(CreateCreditAccountException ex, org.springframework.web.context.request.WebRequest request) -
handleInvalidTransactionExecutionRequestException
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleInvalidTransactionExecutionRequestException(InvalidTransactionExecutionRequestException ex, org.springframework.web.context.request.WebRequest request) -
handleOptimisticLockingFailureException
@ExceptionHandler public org.springframework.http.ResponseEntity<com.broadleafcommerce.common.error.ApiError> handleOptimisticLockingFailureException(org.springframework.dao.OptimisticLockingFailureException ex, org.springframework.web.context.request.WebRequest request) -
logDebug
@Deprecated(forRemoval=true) protected void logDebug(Exception ex, org.springframework.web.context.request.WebRequest request) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated in favor of central logging managed byExceptionHandlerUtils. -
getExceptionHandlerUtils
protected com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils getExceptionHandlerUtils() -
setExceptionHandlerUtils
@Autowired public void setExceptionHandlerUtils(com.broadleafcommerce.common.error.validation.web.ExceptionHandlerUtils exceptionHandlerUtils)
-
ExceptionHandlerUtils.