Error thrown when a function is passed an unacceptable argument.

Inheritance
Implemented by

Properties

invalidValue → dynamic
read-only

The invalid value.

message → dynamic
read-only

Message describing the problem.

name String
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.