Class ApiExceptionHandler

java.lang.Object
org.frankframework.console.configuration.ApiExceptionHandler

@RestControllerAdvice @Order(-2147483647) public class ApiExceptionHandler extends Object
  • Constructor Details

    • ApiExceptionHandler

      public ApiExceptionHandler()
  • Method Details

    • handleException

      @ExceptionHandler({org.springframework.web.HttpRequestMethodNotSupportedException.class,org.springframework.web.HttpMediaTypeNotSupportedException.class,org.springframework.web.HttpMediaTypeNotAcceptableException.class,org.springframework.web.bind.MissingPathVariableException.class,org.springframework.web.bind.MethodArgumentNotValidException.class,org.springframework.web.servlet.resource.NoResourceFoundException.class,org.springframework.web.context.request.async.AsyncRequestTimeoutException.class,org.springframework.web.ErrorResponseException.class,org.springframework.web.multipart.MaxUploadSizeExceededException.class,java.lang.Exception.class}) protected final org.springframework.http.ResponseEntity<Object> handleException(Exception ex)
      Taken from ResponseEntityExceptionHandler.handleException(Exception, WebRequest) }
    • handleExceptionLowLevel

      @ExceptionHandler({org.springframework.web.bind.MissingServletRequestParameterException.class,org.springframework.web.multipart.support.MissingServletRequestPartException.class,org.springframework.web.bind.ServletRequestBindingException.class,org.springframework.beans.ConversionNotSupportedException.class,org.springframework.beans.TypeMismatchException.class,org.springframework.http.converter.HttpMessageNotReadableException.class,org.springframework.http.converter.HttpMessageNotWritableException.class,org.springframework.validation.method.MethodValidationException.class,org.springframework.validation.BindException.class}) protected final org.springframework.http.ResponseEntity<Object> handleExceptionLowLevel(Exception ex)
      Lower level exceptions
    • handleNoHandlerFoundException

      @ExceptionHandler(org.springframework.web.servlet.NoHandlerFoundException.class) protected org.springframework.http.ResponseEntity<Object> handleNoHandlerFoundException(org.springframework.web.servlet.NoHandlerFoundException ex)
      When a RestController cannot be found, Spring MVC throws this Exception.
    • handleApiException

      @ExceptionHandler(ApiException.class) protected org.springframework.http.ResponseEntity<Object> handleApiException(ApiException exception)
    • handleSpringException

      protected org.springframework.http.ResponseEntity<Object> handleSpringException(Exception exception, org.springframework.http.HttpStatusCode status, @Nullable org.springframework.http.HttpHeaders headers)