Class HttpClientPermissionErrorExceptionHandler


  • @Order(2147483647)
    @ControllerAdvice
    public class HttpClientPermissionErrorExceptionHandler
    extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
    Returns the status code in Http response according to the code contained in HttpClientPermissionErrorException.statusCode.
    Author:
    Marcos Paulo dos Santos
    See Also:
    HttpClientPermissionErrorExceptionHandler
    • Field Summary

      • Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

        logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<Object> handler​(org.springframework.web.client.HttpStatusCodeException exception, org.springframework.web.context.request.WebRequest request)  
      • Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

        handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
    • Constructor Detail

      • HttpClientPermissionErrorExceptionHandler

        public HttpClientPermissionErrorExceptionHandler()
    • Method Detail

      • handler

        @ExceptionHandler(HttpClientPermissionErrorException.class)
        public org.springframework.http.ResponseEntity<Object> handler​(org.springframework.web.client.HttpStatusCodeException exception,
                                                                       org.springframework.web.context.request.WebRequest request)