Class CommonExceptionHandlerQuery

java.lang.Object
org.activiti.cloud.services.query.rest.CommonExceptionHandlerQuery

@RestControllerAdvice public class CommonExceptionHandlerQuery extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage>
    handleAppException(jakarta.persistence.EntityNotFoundException ex, jakarta.servlet.http.HttpServletResponse response)
     
    org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage>
    handleAppException(IllegalStateException ex, jakarta.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, jakarta.servlet.http.HttpServletResponse response)
     

    Methods inherited from class java.lang.Object

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

    • CommonExceptionHandlerQuery

      public CommonExceptionHandlerQuery()
  • Method Details

    • 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, jakarta.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, jakarta.servlet.http.HttpServletResponse response)
    • handleAppException

      @ExceptionHandler(jakarta.persistence.EntityNotFoundException.class) @ResponseStatus(NOT_FOUND) public org.springframework.hateoas.EntityModel<org.activiti.api.model.shared.model.ActivitiErrorMessage> handleAppException(jakarta.persistence.EntityNotFoundException ex, jakarta.servlet.http.HttpServletResponse response)