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 unity

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.

Inherited Variables

Defined by Exception

read onlystack:CallStack

Available on clay web

The call stack at the moment of the exception creation.

read onlynative:Any

Available on clay web

Native exception, which caused this exception.

read onlymessage:String

Available with clay native, gif plugin, headless, tilemap plugin, unity

Exception message.

Inherited Methods

Defined by Exception

toString():String

Available with clay native, gif plugin, headless, tilemap plugin, unity

Returns exception message.