Skip to content

Instantly share code, notes, and snippets.

@dpeek
Created February 3, 2015 09:28
Show Gist options
  • Save dpeek/761d332f6f93e6fe7bdb to your computer and use it in GitHub Desktop.
Save dpeek/761d332f6f93e6fe7bdb to your computer and use it in GitHub Desktop.
package haxe;
typedef Error =
#if !native_error
String;
#elseif js
js.Error;
#elseif flash
flash.errors.Error;
#elseif java
java.lang.Error;
#elseif cs
cs.system.Exception;
#elseif python
python.lib.Exception;
#elseif php
php.Exception;
#else
String;
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment