Custom Error Handling

hi guys, I’m handling BpmnError cases well. but how do I handle errors that occur while completing a task, or at conditions with bad expression or something else?

If we look the picture above, how can we use this error like BpmnError. where this exception throw and how handle this exception custom methods like ?