jsonkraken / net.jemzart.jsonkraken.errors.transformation / InvalidCastException

InvalidCastException

class InvalidCastException : JsonKrakenException

Since
2.0 An exception used for when a JsonValue tries to be unboxed, but fails because it cannot be casted to said type. See 'Valid Types' for more information. (https://github.com/zogar1993/jsonkraken#valid-types)

Constructors

<init>

InvalidCastException(from: KClass<out JsonValue>, to: KClass<*>)

Properties

from

val from: KClass<out JsonValue>

the type of the JsonValue.

to

val to: KClass<*>

the type to witch the cast was intended.