Package com.skava.paymentapp.web.handler
Class PaymentPluginExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
com.skava.payment.web.handler.PaymentExceptionHandler
com.skava.paymentapp.web.handler.PaymentPluginExceptionHandler
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.MessageSourceAware
@ControllerAdvice
@Primary
public class PaymentPluginExceptionHandler
extends com.skava.payment.web.handler.PaymentExceptionHandler
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>
handlePaymentServiceException
(PaymentOptionsException exception, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<Object>
handlePaymentServiceException
(PaymentRankingException exception, org.springframework.web.context.request.WebRequest request) Methods inherited from class com.skava.payment.web.handler.PaymentExceptionHandler
handleHttpMessageNotReadable, handleMethodArgumentNotValid, handleMissingServletRequestParameter, handleMissingServletRequestPart, handlePaymentProcessorException, handlePaymentServiceException, handlePaymentServiceException, handleServletRequestBindingException, handleTypeMismatch
Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
createProblemDetail, createResponseEntity, getMessageSource, handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleErrorResponseException, handleException, handleExceptionInternal, handleHandlerMethodValidationException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMaxUploadSizeExceededException, handleMethodValidationException, handleMissingPathVariable, handleNoHandlerFoundException, handleNoResourceFoundException, setMessageSource
-
Constructor Details
-
PaymentPluginExceptionHandler
public PaymentPluginExceptionHandler()
-
-
Method Details
-
handlePaymentServiceException
@ExceptionHandler(PaymentOptionsException.class) public org.springframework.http.ResponseEntity<Object> handlePaymentServiceException(PaymentOptionsException exception, org.springframework.web.context.request.WebRequest request) -
handlePaymentServiceException
@ExceptionHandler(PaymentRankingException.class) public org.springframework.http.ResponseEntity<Object> handlePaymentServiceException(PaymentRankingException exception, org.springframework.web.context.request.WebRequest request)
-