failingURL
TypeScriptget failingURL(): (string) | nullSwift declarationvar failingURL: URL? { get }The URL which caused a load to fail.
struct · iOS 8.0+ · SDK 27.1
struct URLErrorError codes returned by URL loading APIs. These error codes are for ``NSError`` objects in the domain ``NSURLErrorDomain``.
get failingURL(): (string) | nullSwift declarationvar failingURL: URL? { get }The URL which caused a load to fail.
static get errorDomain(): stringSwift declarationstatic var errorDomain: String { get }The domain of the error.
static get callIsActive(): URLError_CodeSwift declarationstatic var callIsActive: URLError.Code { get }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).
static get cannotFindHost(): URLError_CodeSwift declarationstatic var cannotFindHost: URLError.Code { get }The host name for a URL could not be resolved.
static get cannotMoveFile(): URLError_CodeSwift declarationstatic var cannotMoveFile: URLError.Code { get }A download task was unable to move a downloaded file on disk.
static get cannotOpenFile(): URLError_CodeSwift declarationstatic var cannotOpenFile: URLError.Code { get }A download task was unable to open the downloaded file on disk.
static get dataNotAllowed(): URLError_CodeSwift declarationstatic var dataNotAllowed: URLError.Code { get }The cellular network disallowed a connection.
static get unsupportedURL(): URLError_CodeSwift declarationstatic var unsupportedURL: URLError.Code { get }A properly formed URL couldn't be handled by the framework.
static get cannotCloseFile(): URLError_CodeSwift declarationstatic var cannotCloseFile: URLError.Code { get }A download task couldn't close the downloaded file on disk.
static get dnsLookupFailed(): URLError_CodeSwift declarationstatic var dnsLookupFailed: URLError.Code { get }The host address could not be found via DNS lookup.
static get fileIsDirectory(): URLError_CodeSwift declarationstatic var fileIsDirectory: URLError.Code { get }A request for an FTP file resulted in the server responding that the file is not a plain file, but a directory.
static get cannotCreateFile(): URLError_CodeSwift declarationstatic var cannotCreateFile: URLError.Code { get }A download task couldn't create the downloaded file on disk because of an I/O failure.
static get cannotRemoveFile(): URLError_CodeSwift declarationstatic var cannotRemoveFile: URLError.Code { get }A download task was unable to remove a downloaded file from disk.
get failureURLString(): (string) | nullSwift declarationvar failureURLString: String? { get }The string for the URL which caused a load to fail.
static get fileDoesNotExist(): URLError_CodeSwift declarationstatic var fileDoesNotExist: URLError.Code { get }A file does not exist.
static get zeroByteResource(): URLError_CodeSwift declarationstatic var zeroByteResource: URLError.Code { get }A server reported that a URL has a non-zero content length, but terminated the network connection gracefully without sending any data.
static get badServerResponse(): URLError_CodeSwift declarationstatic var badServerResponse: URLError.Code { get }The URL Loading system received bad data from the server.
static get cannotWriteToFile(): URLError_CodeSwift declarationstatic var cannotWriteToFile: URLError.Code { get }A download task was unable to write to the downloaded file on disk.
static get cannotConnectToHost(): URLError_CodeSwift declarationstatic var cannotConnectToHost: URLError.Code { get }An attempt to connect to a host failed.
static get cannotDecodeRawData(): URLError_CodeSwift declarationstatic var cannotDecodeRawData: URLError.Code { get }Content data received during a connection request could not be decoded for a known content encoding.
static get cannotParseResponse(): URLError_CodeSwift declarationstatic var cannotParseResponse: URLError.Code { get }A task could not parse a response.
get failureURLPeerTrust(): (_Security_SecTrust) | nullSwift declarationvar failureURLPeerTrust: SecTrust? { get }The state of a failed SSL handshake.
static get resourceUnavailable(): URLError_CodeSwift declarationstatic var resourceUnavailable: URLError.Code { get }A requested resource couldn't be retrieved.
static get httpTooManyRedirects(): URLError_CodeSwift declarationstatic var httpTooManyRedirects: URLError.Code { get }A redirect loop has been detected or the threshold for number of allowable redirects has been exceeded (currently 16).
get uploadTaskResumeData(): (ArrayBuffer) | nullSwift declarationvar uploadTaskResumeData: Data? { get }An opaque data blob to resume a failed upload task.
static get cannotLoadFromNetwork(): URLError_CodeSwift declarationstatic var cannotLoadFromNetwork: URLError.Code { get }A request to load an item only from the cache could not be satisfied.
static get networkConnectionLost(): URLError_CodeSwift declarationstatic var networkConnectionLost: URLError.Code { get }A client or server connection was severed in the middle of an in-progress load.
get downloadTaskResumeData(): (ArrayBuffer) | nullSwift declarationvar downloadTaskResumeData: Data? { get }An opaque data object used to resume a failed download task.
static get notConnectedToInternet(): URLError_CodeSwift declarationstatic var notConnectedToInternet: URLError.Code { get }A network resource was requested, but an internet connection has not been established and cannot be established automatically.
static get secureConnectionFailed(): URLError_CodeSwift declarationstatic var secureConnectionFailed: URLError.Code { get }An attempt to establish a secure connection failed for reasons that can't be expressed more specifically.
static get cannotDecodeContentData(): URLError_CodeSwift declarationstatic var cannotDecodeContentData: URLError.Code { get }Content data received during a connection request had an unknown content encoding.
static get internationalRoamingOff(): URLError_CodeSwift declarationstatic var internationalRoamingOff: URLError.Code { get }The attempted connection required activating a data context while roaming, but international roaming is disabled.
static get noPermissionsToReadFile(): URLError_CodeSwift declarationstatic var noPermissionsToReadFile: URLError.Code { get }A resource couldn't be read because of insufficient permissions.
static get dataLengthExceedsMaximum(): URLError_CodeSwift declarationstatic var dataLengthExceedsMaximum: URLError.Code { get }The length of the resource data exceeds the maximum allowed.
get networkUnavailableReason(): (URLError_NetworkUnavailableReason) | nullSwift declarationvar networkUnavailableReason: URLError.NetworkUnavailableReason? { get }The reason the network was unavailable for a task.
static get clientCertificateRejected(): URLError_CodeSwift declarationstatic var clientCertificateRejected: URLError.Code { get }A server certificate was rejected.
static get clientCertificateRequired(): URLError_CodeSwift declarationstatic var clientCertificateRequired: URLError.Code { get }A client certificate was required to authenticate an SSL connection during a request.
static get requestBodyStreamExhausted(): URLError_CodeSwift declarationstatic var requestBodyStreamExhausted: URLError.Code { get }A body stream is needed but the client did not provide one.
static get serverCertificateUntrusted(): URLError_CodeSwift declarationstatic var serverCertificateUntrusted: URLError.Code { get }A server certificate was signed by a root server that isn't trusted.
static get userAuthenticationRequired(): URLError_CodeSwift declarationstatic var userAuthenticationRequired: URLError.Code { get }Authentication is required to access a resource.
static get serverCertificateHasBadDate(): URLError_CodeSwift declarationstatic var serverCertificateHasBadDate: URLError.Code { get }A server certificate had a date which indicates it has expired, or is not yet valid.
static get userCancelledAuthentication(): URLError_CodeSwift declarationstatic var userCancelledAuthentication: URLError.Code { get }An asynchronous request for authentication has been canceled by the user.
static get serverCertificateNotYetValid(): URLError_CodeSwift declarationstatic var serverCertificateNotYetValid: URLError.Code { get }A server certificate is not yet valid.
get backgroundTaskCancelledReason(): (URLError_BackgroundTaskCancelledReason) | nullSwift declarationvar backgroundTaskCancelledReason: URLError.BackgroundTaskCancelledReason? { get }The reason for canceling a background task.
static get redirectToNonExistentLocation(): URLError_CodeSwift declarationstatic var redirectToNonExistentLocation: URLError.Code { get }A redirect was specified by way of server response code, but the server did not accompany this code with a redirect URL.
static get downloadDecodingFailedMidStream(): URLError_CodeSwift declarationstatic var downloadDecodingFailedMidStream: URLError.Code { get }A download task failed to decode an encoded file during the download.
static get serverCertificateHasUnknownRoot(): URLError_CodeSwift declarationstatic var serverCertificateHasUnknownRoot: URLError.Code { get }A server certificate was not signed by any root server.
static get backgroundSessionWasDisconnected(): URLError_CodeSwift declarationstatic var backgroundSessionWasDisconnected: URLError.Code { get }The app is suspended or exits while a background data task is processing.
static get downloadDecodingFailedToComplete(): URLError_CodeSwift declarationstatic var downloadDecodingFailedToComplete: URLError.Code { get }A download task failed to decode an encoded file after downloading.
static get backgroundSessionInUseByAnotherProcess(): URLError_CodeSwift declarationstatic var backgroundSessionInUseByAnotherProcess: URLError.Code { get }An app or app extension attempted to connect to a background session that is already connected to a process.
static get backgroundSessionRequiresSharedContainer(): URLError_CodeSwift declarationstatic var backgroundSessionRequiresSharedContainer: URLError.Code { get }The shared container identifier of the URL session configuration is needed but has not been set.
static get appTransportSecurityRequiresSecureConnection(): URLError_CodeSwift declarationstatic var appTransportSecurityRequiresSecureConnection: URLError.Code { get }App Transport Security disallowed a connection because there is no secure network connection.
static get badURL(): URLError_CodeSwift declarationstatic var badURL: URLError.Code { get }A malformed URL prevented a URL request from being initiated.
static get unknown(): URLError_CodeSwift declarationstatic var unknown: URLError.Code { get }The URL Loading System encountered an error that it can't interpret.
static get timedOut(): URLError_CodeSwift declarationstatic var timedOut: URLError.Code { get }An asynchronous operation timed out.
static get cancelled(): URLError_CodeSwift declarationstatic var cancelled: URLError.Code { get }An asynchronous load has been canceled.
No declarations were skipped in this snapshot.