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

Side by Side Diff: sdk/lib/core/errors.dart

Issue 2856123003: Fix some bad documentation links. (Closed)
Patch Set: Created 3 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 | « sdk/lib/core/duration.dart ('k') | sdk/lib/core/invocation.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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 } 356 }
357 357
358 /** 358 /**
359 * A specialized [RangeError] used when an index is not in the range 359 * A specialized [RangeError] used when an index is not in the range
360 * `0..indexable.length-1`. 360 * `0..indexable.length-1`.
361 * 361 *
362 * Also contains the indexable object, its length at the time of the error, 362 * Also contains the indexable object, its length at the time of the error,
363 * and the invalid index itself. 363 * and the invalid index itself.
364 */ 364 */
365 class IndexError extends ArgumentError implements RangeError { 365 class IndexError extends ArgumentError implements RangeError {
366 /** The indexable object that [index] was not a valid index into. */ 366 /** The indexable object that [invalidValue] was not a valid index into. */
367 final indexable; 367 final indexable;
368 /** The length of [indexable] at the time of the error. */ 368 /** The length of [indexable] at the time of the error. */
369 final int length; 369 final int length;
370 370
371 /** 371 /**
372 * Creates a new [IndexError] stating that [invalidValue] is not a valid index 372 * Creates a new [IndexError] stating that [invalidValue] is not a valid index
373 * into [indexable]. 373 * into [indexable].
374 * 374 *
375 * The [length] is the length of [indexable] at the time of the error. 375 * The [length] is the length of [indexable] at the time of the error.
376 * If `length` is omitted, it defaults to `indexable.length`. 376 * If `length` is omitted, it defaults to `indexable.length`.
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 * the first time it is read. If evaluating the initializer expression causes 550 * the first time it is read. If evaluating the initializer expression causes
551 * another read of the variable, this error is thrown. 551 * another read of the variable, this error is thrown.
552 */ 552 */
553 class CyclicInitializationError extends Error { 553 class CyclicInitializationError extends Error {
554 final String variableName; 554 final String variableName;
555 CyclicInitializationError([this.variableName]); 555 CyclicInitializationError([this.variableName]);
556 String toString() => variableName == null 556 String toString() => variableName == null
557 ? "Reading static variable during its initialization" 557 ? "Reading static variable during its initialization"
558 : "Reading static variable '$variableName' during its initialization"; 558 : "Reading static variable '$variableName' during its initialization";
559 } 559 }
OLDNEW
« no previous file with comments | « sdk/lib/core/duration.dart ('k') | sdk/lib/core/invocation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698