public final class UnexpectedResultException
extends SlowPathException
An exception that should be thrown if the return value cannot be represented as a value of the
return type. The Truffle optimizer has special knowledge of this exception class and will never
compile a catch block that catches this exception type.