Skip to content

Instantly share code, notes, and snippets.

@seaneagan
Created April 20, 2013 03:52
Show Gist options
  • Select an option

  • Save seaneagan/5424679 to your computer and use it in GitHub Desktop.

Select an option

Save seaneagan/5424679 to your computer and use it in GitHub Desktop.
The current dart:async getAttachedStackTrace could potentially be used for sync errors as well, in which case the API could move directly to the StackTrace class:
class StackTrace {
/// the [StackTrace] attached to the given [error]
StackTrace.attachedTo(var error);
/// attach the current [StackTrace] to the given [error].
static void attach(var error);
//...
}
the "throw" construct could implicitly call StackTrace.attach, and possibly could then get rid of the "catch(error, stackTrace)" construct
@seaneagan
Copy link
Author

test comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment