Error thrown when a function is passed an unacceptable argument.
- Extends
- Implemented by
Properties
- dynamic invalidValue
-
read-onlyThe invalid value.
- dynamic message
-
read-onlyMessage describing the problem.
- String name
-
read-onlyName of the invalid argument, if available.
- StackTrace stackTrace
-
read-only, inherited
Constructors
- ArgumentError([message])
- The message describes the erroneous argument.
- ArgumentError.notNull([String name])
-
Create an argument error for a
null
argument that must not benull
. - ArgumentError.value(value, [String name, String message])
-
Creates error containing the invalid
value
.