Error class

Information about a failure.

See NSError

Implemented types

Constructors

Error.fromCustomDomain(String domain, int code, {String? localizedDescription})
Create an Error from a custom domain.
factory

Properties

code int
The numeric code for the error e.g. -1003 (kCFURLErrorCannotFindHost).
no setter
domain String
The error domain, for example "NSPOSIXErrorDomain".
no setter
hashCode int
The hash code for this object.
no setterinherited
localizedDescription String?
A description of the error in the current locale e.g. 'A server with the specified hostname could not be found.'
no setter
localizedFailureReason String?
An explanation of the reason for the error in the current locale.
no setter
localizedRecoverySuggestion String?
An explanation of how to fix the error in the current locale.
no setter
runtimeType Type
A representation of the runtime type of the object.
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.
override

Operators

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