main() {
try {
throw "throw exception";
} catch (e, s) {
print("Exception: $e");
print("StackTrace: $s");
}
}
/*
run:
Exception: throw exception
StackTrace: #0 main (file:///home/jdoodle.dart:3:9)
#1 _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:283:19)
#2 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:184:12)
*/