Error end and start event to pass dynamic error message

Hello,
Does anyone know how to pass the static errorCode and errorMessage into process variable and log using jobWorker?

I am unable to read the static errorCode and errorMessage which I was set in BPMN error properties.

Please check the BPMN model for more details.
testing-error-event.bpmn (8.0 KB)

TIA.