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.

Inherited Variables

Defined by Exception

read onlymessage:String

Exception message.

read onlynative:Any

Native exception, which caused this exception.

Inherited Methods

Defined by Exception

toString():String

Returns exception message.