Class TaskanaRestExceptionHandler


  • @Order(-2147483648)
    @ControllerAdvice
    public class TaskanaRestExceptionHandler
    extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
    This class handles TASKANA exceptions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.http.ResponseEntity<Object> handleBeanInstantiationException​(org.springframework.beans.BeanInstantiationException ex, org.springframework.web.context.request.WebRequest req)  
      protected org.springframework.http.ResponseEntity<Object> handleBindException​(org.springframework.validation.BindException ex, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)  
      protected org.springframework.http.ResponseEntity<Object> handleGeneralException​(Exception ex, org.springframework.web.context.request.WebRequest req)  
      protected org.springframework.http.ResponseEntity<Object> handleIllegalArgumentException​(IllegalArgumentException ex, org.springframework.web.context.request.WebRequest req)  
      protected org.springframework.http.ResponseEntity<Object> handleMaxUploadSizeExceededException​(org.springframework.web.multipart.MaxUploadSizeExceededException ex, org.springframework.web.context.request.WebRequest req)  
      protected org.springframework.http.ResponseEntity<Object> handleTaskanaException​(pro.taskana.common.api.exceptions.TaskanaException ex, org.springframework.web.context.request.WebRequest req)  
      protected org.springframework.http.ResponseEntity<Object> handleTaskanaRuntimeException​(pro.taskana.common.api.exceptions.TaskanaRuntimeException ex, org.springframework.web.context.request.WebRequest req)  
      • Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

        handleAsyncRequestTimeoutException, handleConversionNotSupported, handleException, handleExceptionInternal, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
    • Constructor Detail

      • TaskanaRestExceptionHandler

        public TaskanaRestExceptionHandler()
    • Method Detail

      • handleMaxUploadSizeExceededException

        @ExceptionHandler(org.springframework.web.multipart.MaxUploadSizeExceededException.class)
        protected org.springframework.http.ResponseEntity<Object> handleMaxUploadSizeExceededException​(org.springframework.web.multipart.MaxUploadSizeExceededException ex,
                                                                                                       org.springframework.web.context.request.WebRequest req)
      • handleBeanInstantiationException

        @ExceptionHandler(org.springframework.beans.BeanInstantiationException.class)
        protected org.springframework.http.ResponseEntity<Object> handleBeanInstantiationException​(org.springframework.beans.BeanInstantiationException ex,
                                                                                                   org.springframework.web.context.request.WebRequest req)
      • handleTaskanaRuntimeException

        @ExceptionHandler(pro.taskana.common.api.exceptions.TaskanaRuntimeException.class)
        protected org.springframework.http.ResponseEntity<Object> handleTaskanaRuntimeException​(pro.taskana.common.api.exceptions.TaskanaRuntimeException ex,
                                                                                                org.springframework.web.context.request.WebRequest req)
      • handleTaskanaException

        @ExceptionHandler(pro.taskana.common.api.exceptions.TaskanaException.class)
        protected org.springframework.http.ResponseEntity<Object> handleTaskanaException​(pro.taskana.common.api.exceptions.TaskanaException ex,
                                                                                         org.springframework.web.context.request.WebRequest req)
      • handleGeneralException

        @ExceptionHandler(java.lang.Exception.class)
        protected org.springframework.http.ResponseEntity<Object> handleGeneralException​(Exception ex,
                                                                                         org.springframework.web.context.request.WebRequest req)
      • handleBindException

        @NonNull
        protected org.springframework.http.ResponseEntity<Object> handleBindException​(org.springframework.validation.BindException ex,
                                                                                      @NonNull
                                                                                      org.springframework.http.HttpHeaders headers,
                                                                                      @NonNull
                                                                                      org.springframework.http.HttpStatus status,
                                                                                      @NonNull
                                                                                      org.springframework.web.context.request.WebRequest request)
        Overrides:
        handleBindException in class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler