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

isSupported() bool
Checks if the value is supported by the defaultTargetPlatform.
name() String
Gets the name of the value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toNativeValue() int?
Gets int native value if supported by the current platform, otherwise null.
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_SHOW_MIME_TYPE WebResourceErrorType
The MIME type of the resource is not supported.
final
CANNOT_SHOW_URI WebResourceErrorType
The URI cannot be shown.
final
CANNOT_USE_RESTRICTED_PORT WebResourceErrorType
The port is restricted.
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
CONNECTION_ABORTED WebResourceErrorType
Indicates that the connection was stopped.
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_CANCELLED_BY_USER WebResourceErrorType
Download was cancelled by user.
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
DOWNLOAD_DESTINATION_FAILED WebResourceErrorType
Download failure due to destination error.
final
DOWNLOAD_NETWORK_FAILED WebResourceErrorType
Download failure due to network error.
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
FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE WebResourceErrorType
Frame load was interrupted by a policy change.
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
POLICY_FAILED WebResourceErrorType
Generic policy error.
final
PROXY_AUTHENTICATION WebResourceErrorType
User authentication failed on proxy.
final
REDIRECT_FAILED WebResourceErrorType
Indicates that the request redirect failed.
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
RESET WebResourceErrorType
Indicates that the connection was reset.
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_BAD_IDENTITY WebResourceErrorType
The certificate does not match the expected identity of the site.
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_REVOKED WebResourceErrorType
The certificate has been revoked.
final
SERVER_CERTIFICATE_UNTRUSTED WebResourceErrorType
A server certificate was signed by a root server that isn’t trusted.
final
SERVER_UNREACHABLE WebResourceErrorType
Indicates that the host is unreachable.
final
TIMEOUT WebResourceErrorType
Connection timed out.
final
TLS_CERTIFICATE_GENERIC_ERROR WebResourceErrorType
Some other error occurred validating the certificate.
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
UNEXPECTED_ERROR WebResourceErrorType
Indicates that an unexpected error occurred.
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
VALID_PROXY_AUTHENTICATION_REQUIRED WebResourceErrorType
Indicates that user lacks proper authentication credentials for a proxy server.
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

asNameMap() Map<String, WebResourceErrorType>
Creates a map from the names of WebResourceErrorType values to the values.
byName(String? name) WebResourceErrorType?
Gets a possible WebResourceErrorType instance value with name name.
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.