WebResourceErrorType class

Class that represents the error types returned by URL loading APIs.

Properties

hashCode int
The hash code for this object.
no setteroverride
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
toNativeValue() int?
Gets int? native value.
toString() String
A string representation of this object.
override
toValue() String
Gets String value.

Operators

operator ==(Object value) bool
The equality operator.
override

Static Properties

APP_TRANSPORT_SECURITY_REQUIRES_SECURE_CONNECTION WebResourceErrorType
App Transport Security disallowed a connection because there is no secure network connection.
final
BACKGROUND_SESSION_IN_USE_BY_ANOTHER_PROCESS WebResourceErrorType
An app or app extension attempted to connect to a background session that is already connected to a process.
final
BACKGROUND_SESSION_REQUIRES_SHARED_CONTAINER WebResourceErrorType
The shared container identifier of the URL session configuration is needed but has not been set.
final
BACKGROUND_SESSION_WAS_DISCONNECTED WebResourceErrorType
The app is suspended or exits while a background data task is processing.
final
BAD_SERVER_RESPONSE WebResourceErrorType
The URL Loading System received bad data from the server.
final
BAD_URL WebResourceErrorType
A malformed URL prevented a URL request from being initiated.
final
CALL_IS_ACTIVE WebResourceErrorType
A connection was attempted while a phone call is active on a network that does not support simultaneous phone and data communication (EDGE or GPRS).
final
CANCELLED WebResourceErrorType
An asynchronous load has been canceled.
final
CANNOT_CLOSE_FILE WebResourceErrorType
A download task couldn’t close the downloaded file on disk.
final
CANNOT_CONNECT_TO_HOST WebResourceErrorType
Failed to connect to the server.
final
CANNOT_CREATE_FILE WebResourceErrorType
A download task couldn’t create the downloaded file on disk because of an I/O failure.
final
CANNOT_DECODE_CONTENT_DATA WebResourceErrorType
Content data received during a connection request couldn’t be decoded for a known content encoding.
final
CANNOT_DECODE_RAW_DATA WebResourceErrorType
Content data received during a connection request couldn’t be decoded for a known content encoding.
final
CANNOT_LOAD_FROM_NETWORK WebResourceErrorType
A request to load an item only from the cache could not be satisfied.
final
CANNOT_MOVE_FILE WebResourceErrorType
A download task was unable to move a downloaded file on disk.
final
CANNOT_OPEN_FILE WebResourceErrorType
A download task was unable to open the downloaded file on disk.
final
CANNOT_PARSE_RESPONSE WebResourceErrorType
A task could not parse a response.
final
CANNOT_REMOVE_FILE WebResourceErrorType
A download task was unable to remove a downloaded file from disk.
final
CANNOT_WRITE_TO_FILE WebResourceErrorType
A download task was unable to write to the downloaded file on disk.
final
CLIENT_CERTIFICATE_REJECTED WebResourceErrorType
A server certificate was rejected.
final
CLIENT_CERTIFICATE_REQUIRED WebResourceErrorType
A client certificate was required to authenticate an SSL connection during a request.
final
DATA_LENGTH_EXCEEDS_MAXIMUM WebResourceErrorType
The length of the resource data exceeds the maximum allowed.
final
DATA_NOT_ALLOWED WebResourceErrorType
The cellular network disallowed a connection.
final
DOWNLOAD_DECODING_FAILED_MID_STREAM WebResourceErrorType
A download task failed to decode an encoded file during the download.
final
DOWNLOAD_DECODING_FAILED_TO_COMPLETE WebResourceErrorType
A download task failed to decode an encoded file after downloading.
final
FAILED_SSL_HANDSHAKE WebResourceErrorType
Failed to perform SSL handshake.
final
FILE_IS_DIRECTORY WebResourceErrorType
A request for an FTP file resulted in the server responding that the file is not a plain file, but a directory.
final
FILE_NOT_FOUND WebResourceErrorType
File not found.
final
GENERIC_FILE_ERROR WebResourceErrorType
Generic file error.
final
HOST_LOOKUP WebResourceErrorType
Server or proxy hostname lookup failed.
final
INTERNATIONAL_ROAMING_OFF WebResourceErrorType
The attempted connection required activating a data context while roaming, but international roaming is disabled.
final
IO WebResourceErrorType
Failed to read or write to the server.
final
NETWORK_CONNECTION_LOST WebResourceErrorType
A client or server connection was severed in the middle of an in-progress load.
final
NO_PERMISSIONS_TO_READ_FILE WebResourceErrorType
A resource couldn’t be read because of insufficient permissions.
final
NOT_CONNECTED_TO_INTERNET WebResourceErrorType
A network resource was requested, but an internet connection hasn’t been established and can’t be established automatically.
final
PROXY_AUTHENTICATION WebResourceErrorType
User authentication failed on proxy.
final
REDIRECT_TO_NON_EXISTENT_LOCATION WebResourceErrorType
A redirect was specified by way of server response code, but the server didn’t accompany this code with a redirect URL.
final
REQUEST_BODY_STREAM_EXHAUSTED WebResourceErrorType
A body stream is needed but the client did not provide one.
final
RESOURCE_UNAVAILABLE WebResourceErrorType
A requested resource couldn't be retrieved. This error can indicate a file-not-found situation, or decoding problems that prevent data from being processed correctly.
final
SECURE_CONNECTION_FAILED WebResourceErrorType
An attempt to establish a secure connection failed for reasons that can’t be expressed more specifically.
final
SERVER_CERTIFICATE_HAS_BAD_DATE WebResourceErrorType
A server certificate had a date which indicates it has expired, or is not yet valid.
final
SERVER_CERTIFICATE_HAS_UNKNOWN_ROOT WebResourceErrorType
A server certificate was not signed by any root server.
final
SERVER_CERTIFICATE_NOT_YET_VALID WebResourceErrorType
A server certificate is not yet valid.
final
SERVER_CERTIFICATE_UNTRUSTED WebResourceErrorType
A server certificate was signed by a root server that isn’t trusted.
final
TIMEOUT WebResourceErrorType
Connection timed out.
final
TOO_MANY_REDIRECTS WebResourceErrorType
A redirect loop has been detected or the threshold for number of allowable redirects has been exceeded (currently 16 on iOS).
final
TOO_MANY_REQUESTS WebResourceErrorType
Too many requests during this load.
final
UNKNOWN WebResourceErrorType
The URL Loading System encountered an error that it can’t interpret.
final
UNSAFE_RESOURCE WebResourceErrorType
Resource load was canceled by Safe Browsing.
final
UNSUPPORTED_AUTH_SCHEME WebResourceErrorType
Unsupported authentication scheme (not basic or digest).
final
UNSUPPORTED_SCHEME WebResourceErrorType
Unsupported URI scheme. Typically this occurs when there is no available protocol handler for the URL.
final
USER_AUTHENTICATION_FAILED WebResourceErrorType
User authentication failed on server.
final
USER_AUTHENTICATION_REQUIRED WebResourceErrorType
Authentication is required to access a resource.
final
USER_CANCELLED_AUTHENTICATION WebResourceErrorType
An asynchronous request for authentication has been canceled by the user. This error typically occurs when a user clicks a "Cancel" button in a username/password dialog, rather than attempting to authenticate.
final
values Set<WebResourceErrorType>
Set of all values of WebResourceErrorType.
final
ZERO_BYTE_RESOURCE WebResourceErrorType
A server reported that a URL has a non-zero content length, but terminated the network connection gracefully without sending any data.
final

Static Methods

fromNativeValue(int? value) WebResourceErrorType?
Gets a possible WebResourceErrorType instance from a native value.
fromValue(String? value) WebResourceErrorType?
Gets a possible WebResourceErrorType instance from String value.