Error thrown when a function is passed an unacceptable argument.

Extends
Implemented by

Properties

dynamic invalidValue
read-only
The invalid value.
dynamic message
read-only
Message describing the problem.
String name
read-only
Name 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 be null.
ArgumentError.value(value, [String name, String message])
Creates error containing the invalid value.

Methods

toString() → String
Returns a string representation of this object.