Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: sdk/lib/core/exceptions.dart

Issue 12316116: Add functionality to get full stack trace when exceptions are thrown. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/core/exceptions.dart
===================================================================
--- sdk/lib/core/exceptions.dart (revision 19025)
+++ sdk/lib/core/exceptions.dart (working copy)
@@ -67,3 +67,24 @@
const IntegerDivisionByZeroException();
String toString() => "IntegerDivisionByZeroException";
}
+
+
+/**
+ * An interface implemented by all stack trace objects.
+ *
+ * A [Stacktrace] is intended to convey information to the user about the call
+ * sequence that triggered an exception.
+ *
+ * These objects are created by the runtime, it is not possible to create
+ * them programmatically.
+ */
+abstract class Stacktrace {
nweiz 2013/02/26 19:17:58 This should be called "StackTrace", and its member
siva 2013/02/27 02:21:59 Done.
+ // Returns a String object that contains the full stack trace starting from
+ // the point where an exception has ocurred to 'main'.
+ external String get fullStacktrace;
nweiz 2013/02/26 19:17:58 What's the motivation for this existing separate f
siva 2013/02/27 02:21:59 A partial stack trace is very useful for library d
nweiz 2013/02/27 19:07:49 It sounds like the partial stack trace is more of
siva 2013/02/27 22:43:59 The name partialStackTrace seems to have a negativ
+
+ // Returns a String object that contains a stack trace starting from the
+ // point where an exception has ocurred to the point where the exception
+ // is caught.
+ external String get stacktrace;
nweiz 2013/02/26 19:17:58 Is this different than toString()? If so, document
siva 2013/02/27 02:21:59 Yes this different from a toString method as the t
+}

Powered by Google App Engine
This is Rietveld 408576698