VariantTypeException

A well-formed value was asked for a type it does not hold — longValue() on a string, or a field lookup on an array.

This is a programming error, not a data error. Use Variant.kind to branch instead of catching this.

Constructors

Link copied to clipboard
constructor(message: String)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?