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

Side by Side Diff: tool/input_sdk/lib/core/errors.dart

Issue 1987963003: Misc updates (mostly doc) (Closed) Base URL: https://github.com/dart-lang/dev_compiler@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « tool/input_sdk/lib/core/date_time.dart ('k') | tool/input_sdk/lib/core/int.dart » ('j') | no next file with comments »
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 part of dart.core; 5 part of dart.core;
6 6
7 /** 7 /**
8 * Error objects thrown in the case of a program failure. 8 * Error objects thrown in the case of a program failure.
9 * 9 *
10 * An `Error` object represents a program failure that the programmer 10 * An `Error` object represents a program failure that the programmer
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 * The [memberName] is a [Symbol] representing the name of the called method 447 * The [memberName] is a [Symbol] representing the name of the called method
448 * or accessor. It should not be `null`. 448 * or accessor. It should not be `null`.
449 * 449 *
450 * The [positionalArguments] is a list of the positional arguments that the 450 * The [positionalArguments] is a list of the positional arguments that the
451 * method was called with. If `null`, it is considered equivalent to the 451 * method was called with. If `null`, it is considered equivalent to the
452 * empty list. 452 * empty list.
453 * 453 *
454 * The [namedArguments] is a map from [Symbol]s to the values of named 454 * The [namedArguments] is a map from [Symbol]s to the values of named
455 * arguments that the method was called with. 455 * arguments that the method was called with.
456 * 456 *
457 * The optional [exisitingArgumentNames] is the expected parameters of a 457 * The optional [existingArgumentNames] is the expected parameters of a
458 * method with the same name on the receiver, if available. This is 458 * method with the same name on the receiver, if available. This is
459 * the signature of the method that would have been called if the parameters 459 * the signature of the method that would have been called if the parameters
460 * had matched. 460 * had matched.
461 */ 461 */
462 NoSuchMethodError(Object receiver, 462 NoSuchMethodError(Object receiver,
463 Symbol memberName, 463 Symbol memberName,
464 List positionalArguments, 464 List positionalArguments,
465 Map<Symbol ,dynamic> namedArguments, 465 Map<Symbol ,dynamic> namedArguments,
466 [List existingArgumentNames = null]) 466 [List existingArgumentNames = null])
467 : _receiver = receiver, 467 : _receiver = receiver,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 * the first time it is read. If evaluating the initializer expression causes 564 * the first time it is read. If evaluating the initializer expression causes
565 * another read of the variable, this error is thrown. 565 * another read of the variable, this error is thrown.
566 */ 566 */
567 class CyclicInitializationError extends Error { 567 class CyclicInitializationError extends Error {
568 final String variableName; 568 final String variableName;
569 CyclicInitializationError([this.variableName]); 569 CyclicInitializationError([this.variableName]);
570 String toString() => variableName == null 570 String toString() => variableName == null
571 ? "Reading static variable during its initialization" 571 ? "Reading static variable during its initialization"
572 : "Reading static variable '$variableName' during its initialization"; 572 : "Reading static variable '$variableName' during its initialization";
573 } 573 }
OLDNEW
« no previous file with comments | « tool/input_sdk/lib/core/date_time.dart ('k') | tool/input_sdk/lib/core/int.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698