ValueException

package haxe

extends Exception

Available on all platforms

An exception containing arbitrary value.

This class is automatically used for throwing values, which don't extend haxe.Exception or native exception type. For example:

throw "Terrible error";

will be compiled to

throw new ValueException("Terrible error");

Constructor

new(value:Any, ?previous:Exception, ?native:Any)

Variables

read onlyvalue:Any

Thrown value.

Methods

unwrap():Any

Available on cs

Extract an originally thrown value.

This method must return the same value on subsequent calls. Used internally for catching non-native exceptions. Do not override unless you know what you are doing.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/ValueException.html