Dart API Reference
dart:core
ArgumentError
ArgumentError
class
Error thrown when a function is passed an unacceptable argument.
Error thrown when a function is passed an unacceptable argument.
Extends:
Error
Object
Implementors
RangeError
IndexError
Constructors
ArgumentError
( [
message
] )
The
message
describes the erroneous argument.
ArgumentError.value
(
value
, [
String
name
,
String
message
] )
Creates error containing the invalid value.
ArgumentError.notNull
( [
String
name
] )
Create an argument error for a null argument that must not be null.
Instance Properties
invalidValue
dynamic
read-only
The invalid value.
name
String
read-only
Name of the invalid argument, if available.
message
dynamic
read-only
Message describing the problem.
stackTrace
StackTrace
Inherited
read-only
Instance Methods
toString
( ) →
String
Returns a string representation of this object.