Class ApiExceptionHandler
java.lang.Object
org.frankframework.console.configuration.ApiExceptionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.http.ResponseEntity
<Object> handleApiException
(ApiException exception) protected final org.springframework.http.ResponseEntity
<Object> Taken fromResponseEntityExceptionHandler.handleException(Exception, WebRequest)
}protected final org.springframework.http.ResponseEntity
<Object> Lower level exceptionsprotected org.springframework.http.ResponseEntity
<Object> handleNoHandlerFoundException
(org.springframework.web.servlet.NoHandlerFoundException ex) When aRestController
cannot be found, Spring MVC throws this Exception.protected org.springframework.http.ResponseEntity
<Object> handleSpringException
(Exception exception, org.springframework.http.HttpStatusCode status, org.springframework.http.HttpHeaders headers)
-
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 fromResponseEntityExceptionHandler.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 aRestController
cannot be found, Spring MVC throws this Exception. -
handleApiException
@ExceptionHandler(ApiException.class) protected org.springframework.http.ResponseEntity<Object> handleApiException(ApiException exception) -
handleSpringException
-