serialize

open override fun serialize(encoder: Encoder, value: Throwable)

Serialize a Throwable object into a json string.

Parameters

encoder

the encoder object used to serialize the Throwable object

value

the Throwable object to be serialized