OLD | NEW |
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 import 'dart:_internal' as internal; | 5 import 'dart:_internal' as internal; |
6 import 'dart:convert' show JSON; | 6 import 'dart:convert' show JSON; |
7 | 7 |
8 patch class Error { | 8 patch class Error { |
9 /* patch */ static String _objectToString(Object object) { | 9 /* patch */ static String _objectToString(Object object) { |
10 return Object._toString(object); | 10 return Object._toString(object); |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 msg_buf.write( | 355 msg_buf.write( |
356 "NoSuchMethodError: incorrect number of arguments passed to " | 356 "NoSuchMethodError: incorrect number of arguments passed to " |
357 "method named '$memberName'\n" | 357 "method named '$memberName'\n" |
358 "Receiver: $receiver_str\n" | 358 "Receiver: $receiver_str\n" |
359 "Tried calling: $memberName($actualParameters)\n" | 359 "Tried calling: $memberName($actualParameters)\n" |
360 "Found: $memberName($formalParameters)"); | 360 "Found: $memberName($formalParameters)"); |
361 } | 361 } |
362 return msg_buf.toString(); | 362 return msg_buf.toString(); |
363 } | 363 } |
364 } | 364 } |
365 | |
366 class _JavascriptIntegerOverflowError extends Error { | |
367 final Object _value; | |
368 | |
369 _JavascriptIntegerOverflowError(this._value); | |
370 String toString() => "Javascript Integer Overflow: $_value"; | |
371 } | |
372 | |
373 class _JavascriptCompatibilityError extends Error { | |
374 final String _msg; | |
375 | |
376 _JavascriptCompatibilityError(this._msg); | |
377 String toString() => "Javascript Compatibility Error: $_msg"; | |
378 } | |
379 | |
OLD | NEW |