Haxe allows throwing any kind of value using its throw syntax:
throw
throw expr
A value which is thrown like this can be caught by catch blocks. If no such block catches it, the behavior is target-dependent.
catch