Class SmartfiCoreExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
es.kukenan.smartfi.springboot.controller.RestExceptionHandler
es.kukenan.smartfi.microservice.smartficore.exception.SmartfiCoreExceptionHandler
@ControllerAdvice
public class SmartfiCoreExceptionHandler
extends es.kukenan.smartfi.springboot.controller.RestExceptionHandler
Exception handler to format Smartfi Core response.
-
Field Summary
FieldsModifier and TypeFieldDescriptionResponse body for the exception.private StringList of endpoint not to be filtered.private StringList of transfers endpoint not to be filtered.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>handleCoreException(SmartfiCoreException ex, org.springframework.web.context.request.WebRequest request) Handler to SmartfiCoreException.private org.springframework.http.ResponseEntity<Object>handleCoreExceptionInternal(Exception ex, Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<Object>handleServletRequestBindingException(org.springframework.web.bind.ServletRequestBindingException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request) private booleanisCoreEndpoint(String path, String pattern) Methods inherited from class es.kukenan.smartfi.springboot.controller.RestExceptionHandler
handleAccessDeniedException, handleAuthenticationException, handleExceptionInternal, handleMissingServletRequestParameter, handleRuntimeException, handleUnexpectedException, handleWalletExceptionMethods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestPart, handleNoHandlerFoundException, handleTypeMismatch
-
Field Details
-
Constructor Details
-
SmartfiCoreExceptionHandler
public SmartfiCoreExceptionHandler()
-
-
Method Details
-
handleCoreException
@ExceptionHandler(SmartfiCoreException.class) public org.springframework.http.ResponseEntity<Object> handleCoreException(SmartfiCoreException ex, org.springframework.web.context.request.WebRequest request) Handler to SmartfiCoreException.- Parameters:
ex- SmartfiCoreExceptionrequest- Http request- Returns:
- Http response entity
-
handleServletRequestBindingException
public org.springframework.http.ResponseEntity<Object> handleServletRequestBindingException(org.springframework.web.bind.ServletRequestBindingException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request) - Overrides:
handleServletRequestBindingExceptionin classorg.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
handleCoreExceptionInternal
-
isCoreEndpoint
-