Dart SDK
dart:core
ArgumentError
class
ArgumentError
Properties
Constructors
Methods
Properties
invalidValue
name
message
stackTrace
Constructors
ArgumentError
value
notNull
Methods
toString
Error thrown when a function is passed an unacceptable argument.
Extends
Object
Error
ArgumentError
Implemented by
IndexError
RangeError
Properties
dynamic
invalidValue
read-only
The invalid value.
String
name
read-only
Name of the invalid argument, if available.
dynamic
message
read-only
Message describing the problem.
StackTrace
stackTrace
read-only ,
inherited
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.
Methods
toString
(
) →
String
Returns a string representation of this object.