Class RuntimeBundleExceptionHandler


  • @RestControllerAdvice
    public class RuntimeBundleExceptionHandler
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.hateoas.Resource<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(java.lang.IllegalStateException ex, javax.servlet.http.HttpServletResponse response)  
      org.springframework.hateoas.Resource<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(java.lang.RuntimeException ex, javax.servlet.http.HttpServletResponse response)  
      org.springframework.hateoas.Resource<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.api.runtime.shared.UnprocessableEntityException ex, javax.servlet.http.HttpServletResponse response)  
      org.springframework.hateoas.Resource<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.Resource<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(org.activiti.image.exception.ActivitiInterchangeInfoNotFoundException ex, javax.servlet.http.HttpServletResponse response)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RuntimeBundleExceptionHandler

        public RuntimeBundleExceptionHandler()
    • Method Detail

      • handleAppException

        @ExceptionHandler(org.activiti.image.exception.ActivitiInterchangeInfoNotFoundException.class)
        @ResponseStatus(NO_CONTENT)
        public org.springframework.hateoas.Resource<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.Resource<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.Resource<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.Resource<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException​(java.lang.RuntimeException ex,
                                                                                                                                 javax.servlet.http.HttpServletResponse response)
      • handleAppException

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