Spec-Zone.ru › Dart 2

dart:core

RangeError class

Error thrown due to an argument value being outside an accepted range.

Inheritance
  • Object
  • Error
  • ArgumentError
  • RangeError
Implementers
  • IndexError

Constructors

RangeError(dynamic message)
Create a new RangeError with the given message.
RangeError.index(int index, dynamic indexable, [String? name, String? message, int? length])
factory
Creates a new RangeError stating that index is not a valid index into indexable.
RangeError.range(num invalidValue, int? minValue, int? maxValue, [String? name, String? message])
Create a new RangeError for a value being outside the valid range.
RangeError.value(num value, [String? name, String? message])
Create a new RangeError with a message for the given value.

Properties

end → num?
final
The maximum value that value is allowed to assume.
hashCode → int
read-onlyinherited
The hash code for this object.
invalidValue → num?
read-onlyoverride
The invalid value.
message → dynamic
finalinherited
Message describing the problem.
name → String?
finalinherited
Name of the invalid argument, if available.
runtimeType → Type
read-onlyinherited
A representation of the runtime type of the object.
stackTrace → StackTrace?
read-onlyinherited
The stack trace at the point where this error was first thrown.
start → num?
final
The minimum value that value is allowed to assume.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed.
toString() → String
inherited
A string representation of this object.

Operators

operator ==(Object other) → bool
inherited
The equality operator.

Static Methods

checkNotNegative(int value, [String? name, String? message]) → int
Check that an integer value is non-negative.
checkValidIndex(int index, dynamic indexable, [String? name, int? length, String? message]) → int
Check that index is a valid index into an indexable object.
checkValidRange(int start, int? end, int length, [String? startName, String? endName, String? message]) → int
Check that a range represents a slice of an indexable object.
checkValueInInterval(int value, int minValue, int maxValue, [String? name, String? message]) → int
Check that an integer value lies in a specific interval.

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.19.6/dart-core/RangeError-class.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API