Catch All faults in Camunda bpmn

Can we catch all faults in camunda. Right now I am able to handle a particular fault with the error code

Hello @RajG ,

to catch all errors in a boundary event, just leave the error id empty.

I hope this helps

Jonathan

1 Like

Hi Jonathan,

Thanks for your reply…I tried without error code…But it did not help

Hello @RajG ,

thank you for your response. Which behaviour did you are inspect?

I am trying to catch different groovy faults…which may vary based on the missing data…I handled most of them in groovy file…Bu trying to catch unhandled exception in bpmn

If you want to catch all BPMN Errors, do not set “Global Error Referenced”

1 Like

Hi @RajG ,
the Error Boundary event exists to catch Business Errors happening in a process. A Error Boundary event can be triggered by throwing a org.camunda.bpm.engine.delegate.BpmnError. This will be handled as BPMN Error and can be caught by a Boundary Event.

I hope this helps

Jonathan