@ControllerAdvice
public class DSpaceApiExceptionControllerAdvice
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
| Constructor and Description |
|---|
DSpaceApiExceptionControllerAdvice() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
handleAuthorizeException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex) |
protected void |
handleGenericException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex) |
protected void |
handleIllegalArgumentException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex) |
protected void |
handleIOException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex) |
protected org.springframework.http.ResponseEntity<Object> |
handleMissingServletRequestParameter(org.springframework.web.bind.MissingServletRequestParameterException ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected void |
handleSQLException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex) |
protected org.springframework.http.ResponseEntity<Object> |
handleTypeMismatch(org.springframework.beans.TypeMismatchException ex,
org.springframework.http.HttpHeaders headers,
org.springframework.http.HttpStatus status,
org.springframework.web.context.request.WebRequest request) |
protected void |
ParameterConversionException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex) |
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoSuchRequestHandlingMethod, handleServletRequestBindingException@ExceptionHandler(value={org.dspace.authorize.AuthorizeException.class,RESTAuthorizationException.class,org.springframework.security.access.AccessDeniedException.class})
protected void handleAuthorizeException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex)
throws IOException
IOException@ExceptionHandler(value=java.lang.IllegalArgumentException.class) protected void handleIllegalArgumentException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception ex) throws IOException
IOException@ExceptionHandler(value=java.sql.SQLException.class) protected void handleSQLException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception ex) throws IOException
IOException@ExceptionHandler(value=java.io.IOException.class) protected void handleIOException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception ex) throws IOException
IOException@ExceptionHandler(value={MissingParameterException.class,org.springframework.data.repository.support.QueryMethodParameterConversionException.class})
protected void ParameterConversionException(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Exception ex)
throws IOException
IOExceptionprotected org.springframework.http.ResponseEntity<Object> handleMissingServletRequestParameter(org.springframework.web.bind.MissingServletRequestParameterException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
handleMissingServletRequestParameter in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandlerprotected org.springframework.http.ResponseEntity<Object> handleTypeMismatch(org.springframework.beans.TypeMismatchException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)
handleTypeMismatch in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler@ExceptionHandler(value=java.lang.Exception.class) protected void handleGenericException(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Exception ex) throws IOException
IOExceptionCopyright © 2019 DuraSpace. All rights reserved.