ArgumentException class

The exception that is thrown when one of the arguments provided to a method is not valid.

Inheritance
Implemented types
Implementers

Constructors

ArgumentException({String? message = 'Value does not fall within the expected range', Exception? innerException, StackTrace? stackTrace, String? paramName})

Properties

hashCode int
The hash code for this object.
no setterinherited
innerException Exception?
The Exception instance that caused the current exception.
no setterinherited
message String?
The message that describes the current exception.
no setter
paramName String?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The string representation of the immediate frames on the call stack.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

throwIfNullOrEmpty(String? argument, String? paramName) → void
Throws an exception if argument is null or empty.
throwIfNullOrWhitespace(String? argument, String? paramName) → void
Throws an exception if argument is null, empty, or consists only of white-space characters.