Class ValidationExceptionHandler

java.lang.Object
it.gov.pagopa.common.web.exception.ValidationExceptionHandler

@RestControllerAdvice @Order(-2147483648) public class ValidationExceptionHandler extends Object
  • Constructor Details

    • ValidationExceptionHandler

      public ValidationExceptionHandler(@Nullable ErrorDTO templateValidationErrorDTO)
  • Method Details

    • handleWebExchangeBindException

      @ExceptionHandler(org.springframework.web.bind.support.WebExchangeBindException.class) @ResponseStatus(BAD_REQUEST) public ErrorDTO handleWebExchangeBindException(org.springframework.web.bind.support.WebExchangeBindException ex, org.springframework.http.server.reactive.ServerHttpRequest request)
    • handleMissingRequestValueException

      @ExceptionHandler(org.springframework.web.server.MissingRequestValueException.class) @ResponseStatus(BAD_REQUEST) public ErrorDTO handleMissingRequestValueException(org.springframework.web.server.MissingRequestValueException e, org.springframework.http.server.reactive.ServerHttpRequest request)
    • handleNoResourceFoundException

      @ExceptionHandler(org.springframework.web.reactive.resource.NoResourceFoundException.class) @ResponseStatus(NOT_FOUND) public ErrorDTO handleNoResourceFoundException(org.springframework.web.reactive.resource.NoResourceFoundException e, org.springframework.http.server.reactive.ServerHttpRequest request)