Chromium Code Reviews| 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
|
| +} |