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

Side by Side Diff: runtime/lib/errors_patch.dart

Issue 24395007: Improve NoSuchMethodError error messages (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | runtime/vm/object.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /* patch */ StackTrace get stackTrace => _stackTrace; 10 /* patch */ StackTrace get stackTrace => _stackTrace;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 222 }
223 } 223 }
224 break; 224 break;
225 } 225 }
226 case _InvocationMirror._STATIC: { 226 case _InvocationMirror._STATIC: {
227 msg = "No static $type_str '$memberName' declared in class " 227 msg = "No static $type_str '$memberName' declared in class "
228 "'$_receiver'."; 228 "'$_receiver'.";
229 break; 229 break;
230 } 230 }
231 case _InvocationMirror._CONSTRUCTOR: { 231 case _InvocationMirror._CONSTRUCTOR: {
232 msg = "No constructor '$memberName' declared in class '$_receiver'."; 232 msg = "No constructor '$memberName'$args_message declared in class '$_re ceiver'.";
233 break; 233 break;
234 } 234 }
235 case _InvocationMirror._TOP_LEVEL: { 235 case _InvocationMirror._TOP_LEVEL: {
236 msg = "No top-level $type_str '$memberName'$args_message declared."; 236 msg = "No top-level $type_str '$memberName'$args_message declared.";
237 break; 237 break;
238 } 238 }
239 } 239 }
240 return "$msg\n\n"; 240 return "$msg\n\n";
241 } 241 }
242 242
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 return msg_buf.toString(); 304 return msg_buf.toString();
305 } 305 }
306 } 306 }
307 307
308 class _JavascriptIntegerOverflowError extends Error { 308 class _JavascriptIntegerOverflowError extends Error {
309 final Object _value; 309 final Object _value;
310 310
311 _JavascriptIntegerOverflowError(this._value); 311 _JavascriptIntegerOverflowError(this._value);
312 String toString() => "Javascript Integer Overflow: $_value"; 312 String toString() => "Javascript Integer Overflow: $_value";
313 } 313 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.h » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698