ThrowableSerializer

object ThrowableSerializer : KSerializer<Throwable>

ThrowableSerializer is a custom serializer for the Throwable class which is used to serialize/deserialize Throwable objects to/from json strings. This class implements the KSerializer interface provided by the kotlinx.serialization library.

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

is the serial descriptor for the Throwable class.

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Throwable

Deserialize a json string into a Throwable object.

Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Throwable)

Serialize a Throwable object into a json string.