Class ProcessEngineException

    • Field Detail

      • code

        protected int code
    • Constructor Detail

      • ProcessEngineException

        public ProcessEngineException()
      • ProcessEngineException

        public ProcessEngineException​(String message,
                                      Throwable cause)
      • ProcessEngineException

        public ProcessEngineException​(String message)
      • ProcessEngineException

        public ProcessEngineException​(String message,
                                      int code)
      • ProcessEngineException

        public ProcessEngineException​(Throwable cause)
    • Method Detail

      • setCode

        public void setCode​(int code)

        The exception code can be set via delegation code.

        Setting an error code on the exception in delegation code always overrides the exception code from a custom ExceptionCodeProvider.

        Your business logic can react to the exception code exposed via getCode() when calling Camunda Java API and is even exposed to the REST API when an error occurs.