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

Side by Side Diff: runtime/lib/errors_patch.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, 9 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 patch class Error { 5 patch class Error {
6 /* patch */ static String _objectToString(Object object) { 6 /* patch */ static String _objectToString(Object object) {
7 return Object._toString(object); 7 return Object._toString(object);
8 } 8 }
9 } 9 }
10 10
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 msg_buf.add( 143 msg_buf.add(
144 "NoSuchMethodError: incorrect number of arguments passed to " 144 "NoSuchMethodError: incorrect number of arguments passed to "
145 "method named '$_memberName'\n" 145 "method named '$_memberName'\n"
146 "Receiver: ${Error.safeToString(_receiver)}\n" 146 "Receiver: ${Error.safeToString(_receiver)}\n"
147 "Tried calling: $_memberName($actualParameters)\n" 147 "Tried calling: $_memberName($actualParameters)\n"
148 "Found: $_memberName($formalParameters)"); 148 "Found: $_memberName($formalParameters)");
149 } 149 }
150 return msg_buf.toString(); 150 return msg_buf.toString();
151 } 151 }
152 } 152 }
153
154 patch class Stacktrace {
155 /* patch */ String get fullStacktrace native "Stacktrace_getFullStacktrace";
156
157 /* patch */ String get stacktrace native "Stacktrace_getStacktrace";
158
159 /* patch */ void _setupFullStacktrace()
160 native "Stacktrace_setupFullStacktrace";
161 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698