Wrapping exception not working properly

My activity is failing and I am throwing an exception and wrapping it using throw Workflow.wrap(e).
I catch that exeption in my workflow and throw the same exception to fail the workflow.
However, I am not seeing the cause of exception in my workflow in cadence web.The cause is null as seen below-

Cadence exception chaining is very brittle as it relies on Gson serialization of exception objects.

In Temporal we completely revamped it and model exception chains as protobufs to ensure that no information is lost.

Hi Maxim,
I have overwritten the default serializer to protobuf in cadence.

This explains why exceptions are not chained correctly in your case. In Temporal overriding DataConverter doesn’t affect exception chaining and protobufs are supported out of the box.