How to map BPMN error code and message to process variables

Hi all,
I have a process which throws an ConnectorException with code and message in the connector. Exception is caught correctly by the error boundary event and process flow is executed correctly. However, i do not see any process variables which contain error code and message. Documentation says i should define output mapping on the error boundary event. But i do not find any example how to define this mapping.
Does anyone know how to define the output mapping so i can see the error code and message in process variables?
Here is my process:
image
Here is the part of code in the connector which signals error:

throw new ConnectorException("DB-CONNECTOR-ERROR", e);

This is how the error is thrown in BPMN:

How do i create output mapping for error boundary event to see the error code and message as process varibales?

I was about to post the exact same question. Is there any way to do that?

I have the same question. The docs say, its possible but dont show us how.