ValueException

Exceptionhaxe.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: Any

Thrown value.


new(value: Any, ?previous: Exception, ?native: Any): Void
Name Type Default
value Any
previous Exception (optional)
native Any (optional)