ValueException
haxe._Exception.NativeException → Exception → haxe.ValueException (Class)
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");
Instance Members
value: AnyThrown value.
| Name | Type | Default |
|---|---|---|
value |
Any | |
previous |
Exception | (optional) |
native |
Any | (optional) |
Private Members
unwrap(): AnyExtract 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.
| Returns |
|---|
| Any |