Boundary error event with event registry

Can we add a boundary event to a triggerable send task and execute that boundary error event when some java exception is thrown.

Yes, I think so. The boundary event can have an exception mapping: BPMN 2.0 Constructs ยท Flowable Open Source Documentation