serErr

fun serErr(v: Any?, cause: Throwable? = null): Nothing

A shortcut to throw ValueSerializationException.