pedestal

2020-05-18T22:57:58.127Z

Hi @lennart.buit, assoc an ex-info wrapping your exception to the context using the :io.pedestal.interceptor.chain/error key. You can add the ex-data specified in http://pedestal.io/reference/error-handling#_error_function if you are dispatching on that info in a generic error handler. Currently the code which converts an exception to a wrapped exception is private and not part of the public api. @lennart.buit

2020-05-18T22:58:56.127200Z

Not all the ex-data is required. It depends on what you are dispatching on. The ::chain/execution-id is on the context but the stage is not. You do, however, know the stage so can add that if necessary