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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.core; 5 part of dart.core;
6 6
7 // Exceptions are thrown either by the VM or from Dart code. 7 // Exceptions are thrown either by the VM or from Dart code.
8 8
9 /** 9 /**
10 * A marker interface implemented by all core library exceptions. 10 * A marker interface implemented by all core library exceptions.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class IllegalJSRegExpException extends FormatException { 60 class IllegalJSRegExpException extends FormatException {
61 IllegalJSRegExpException(String pattern, String errmsg) 61 IllegalJSRegExpException(String pattern, String errmsg)
62 : super("Illegal pattern: $pattern, $errmsg"); 62 : super("Illegal pattern: $pattern, $errmsg");
63 } 63 }
64 64
65 65
66 class IntegerDivisionByZeroException implements Exception { 66 class IntegerDivisionByZeroException implements Exception {
67 const IntegerDivisionByZeroException(); 67 const IntegerDivisionByZeroException();
68 String toString() => "IntegerDivisionByZeroException"; 68 String toString() => "IntegerDivisionByZeroException";
69 } 69 }
70
71
72 /**
73 * An interface implemented by all stack trace objects.
74 *
75 * A [Stacktrace] is intended to convey information to the user about the call
76 * sequence that triggered an exception.
77 *
78 * These objects are created by the runtime, it is not possible to create
79 * them programmatically.
80 */
81 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.
82 // Returns a String object that contains the full stack trace starting from
83 // the point where an exception has ocurred to 'main'.
84 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
85
86 // Returns a String object that contains a stack trace starting from the
87 // point where an exception has ocurred to the point where the exception
88 // is caught.
89 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
90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698