Class ErrorManager

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

@RestControllerAdvice public class ErrorManager extends Object
  • Constructor Details

    • ErrorManager

      public ErrorManager(@Nullable ErrorDTO defaultErrorDTO)
  • Method Details

    • handleException

      @ExceptionHandler(java.lang.RuntimeException.class) protected org.springframework.http.ResponseEntity<ErrorDTO> handleException(RuntimeException error, org.springframework.http.server.reactive.ServerHttpRequest request)
    • logClientException

      public static void logClientException(RuntimeException error, org.springframework.http.server.reactive.ServerHttpRequest request)
    • getRequestDetails

      public static String getRequestDetails(org.springframework.http.server.reactive.ServerHttpRequest request)