On this page
RangeError class
Error thrown due to an index being outside a valid range.
- Inheritance
 - 
    
- Object
 - Error
 - ArgumentError
 - RangeError
 
 - Implemented by
 
Static Methods
- checkNotNegative(
int value, [ String name, String message ]) → void  - 
    
Check that an integer value isn't negative.
 - checkValidIndex(
int index, indexable, [ String name, int length, String message ]) → void  - 
    
Check that a value 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 ]) → void  - 
    
Check that a
valuelies in a specific interval. 
Constructors
- RangeError(message)
 - 
    
Create a new RangeError with the given
message. - RangeError.index(int index, indexable, [ String name, String message, int length ]) 
    factory
 - 
    
Creates a new RangeError stating that
indexis not a valid index intoindexable. - 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
valueis allowed to assume. - start → num
    final
 - 
    
The minimum value that
valueis allowed to assume. - hashCode → int
    read-only, inherited
 - 
    
The hash code for this object.
 - invalidValue → dynamic 
    final, inherited
 - 
    
The invalid value.
 - message → dynamic 
    final, inherited
 - 
    
Message describing the problem.
 - name → String
    final, inherited
 - 
    
Name of the invalid argument, if available.
 - runtimeType → Type
    read-only, inherited
 - 
    
A representation of the runtime type of the object.
 - stackTrace → StackTrace
    read-only, inherited
 
Operators
- operator ==(
other) → bool inherited - 
    
The equality operator.
 
Methods
- noSuchMethod(
Invocation invocation) → dynamic inherited - 
    
Invoked when a non-existent method or property is accessed.
 - toString(
) → String inherited - 
    
Returns a string representation of this object.
 
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
 https://api.dartlang.org/stable/1.24.3/dart-core/RangeError-class.html