Class RuntimeBundleExceptionHandler


  • @RestControllerAdvice
    public class RuntimeBundleExceptionHandler
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(IllegalStateException ex, javax.servlet.http.HttpServletResponse response)  
      org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(RuntimeException ex, javax.servlet.http.HttpServletResponse response)  
      org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.api.runtime.shared.UnprocessableEntityException ex, javax.servlet.http.HttpServletResponse response)  
      org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.core.common.spring.security.policies.ActivitiForbiddenException ex, javax.servlet.http.HttpServletResponse response)  
      org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.engine.ActivitiException ex, javax.servlet.http.HttpServletResponse response)  
      org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.image.exception.ActivitiInterchangeInfoNotFoundException ex, javax.servlet.http.HttpServletResponse response)  
    • Constructor Detail

      • RuntimeBundleExceptionHandler

        public RuntimeBundleExceptionHandler()
    • Method Detail

      • handleAppException

        @ExceptionHandler(org.activiti.image.exception.ActivitiInterchangeInfoNotFoundException.class)
        @ResponseStatus(NO_CONTENT)
        public org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.image.exception.ActivitiInterchangeInfoNotFoundException ex,
                                                                                                                                    javax.servlet.http.HttpServletResponse response)
      • handleAppException

        @ExceptionHandler(org.activiti.core.common.spring.security.policies.ActivitiForbiddenException.class)
        @ResponseStatus(FORBIDDEN)
        public org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.core.common.spring.security.policies.ActivitiForbiddenException ex,
                                                                                                                                    javax.servlet.http.HttpServletResponse response)
      • handleAppException

        @ExceptionHandler(org.activiti.api.runtime.shared.UnprocessableEntityException.class)
        @ResponseStatus(UNPROCESSABLE_ENTITY)
        public org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.api.runtime.shared.UnprocessableEntityException ex,
                                                                                                                                    javax.servlet.http.HttpServletResponse response)
      • handleAppException

        @ExceptionHandler({org.activiti.api.runtime.shared.NotFoundException.class,org.activiti.engine.ActivitiObjectNotFoundException.class})
        @ResponseStatus(NOT_FOUND)
        public org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(RuntimeException ex,
                                                                                                                                    javax.servlet.http.HttpServletResponse response)
      • handleAppException

        @ExceptionHandler(java.lang.IllegalStateException.class)
        @ResponseStatus(BAD_REQUEST)
        public org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(IllegalStateException ex,
                                                                                                                                    javax.servlet.http.HttpServletResponse response)
      • handleAppException

        @ExceptionHandler(org.activiti.engine.ActivitiException.class)
        @ResponseStatus(INTERNAL_SERVER_ERROR)
        public org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.engine.ActivitiException ex,
                                                                                                                                    javax.servlet.http.HttpServletResponse response)