ArgumentNullException class
An exception that is thrown when a method is invoked and at least one of the passed arguments is null but should never be null.
- Inheritance
-
- Object
- SystemException
- ArgumentException
- ArgumentNullException
- Implemented types
Constructors
- ArgumentNullException({String? message = 'Value cannot be null.', 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 setterinherited
- paramName → String?
-
no setterinherited
- 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
-
throwIfNull(
Object? argument, String? paramName) → void -
Throws an ArgumentNullException if
argumentis null.