Skip to content

Instantly share code, notes, and snippets.

@dpeek
Last active August 29, 2015 13:57
Show Gist options
  • Save dpeek/9479651 to your computer and use it in GitHub Desktop.
Save dpeek/9479651 to your computer and use it in GitHub Desktop.
class Test
{
static function main()
{
try nativeException() catch (e:Dynamic) trace(haxe.CallStack.exceptionStack());
try haxeException() catch (e:Dynamic) trace(haxe.CallStack.exceptionStack());
}
static function haxeException() throw 'error';
static function nativeException() sys.io.File.getContent('file-that-does-not-exist.txt');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment