StructureFoundation5.9.0
CocoaError
Describes errors within the Cocoa error domain.
struct CocoaError
Citizens in Foundation
Conformances
protocol CustomNSError
Describes an error type that specifically provides a domain, code, and user-info dictionary.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Error
A type representing an error value that can be thrown.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
Members
static var coderInvalidValue: CocoaError.Code
static var coderReadCorrupt: CocoaError.Code
static var coderValueNotFound: CocoaError.Code
static var executableArchitectureMismatch: CocoaError.Code
static var executableLink: CocoaError.Code
static var executableLoad: CocoaError.Code
static var executableNotLoadable: CocoaError.Code
static var executableRuntimeMismatch: CocoaError.Code
static var featureUnsupported: CocoaError.Code
static var fileLocking: CocoaError.Code
static var fileManagerUnmountBusy: CocoaError.Code
static var fileManagerUnmountUnknown: CocoaError.Code
static var fileNoSuchFile: CocoaError.Code
static var fileReadCorruptFile: CocoaError.Code
static var fileReadInapplicableStringEncoding: CocoaError.Code
static var fileReadInvalidFileName: CocoaError.Code
static var fileReadNoPermission: CocoaError.Code
static var fileReadNoSuchFile: CocoaError.Code
static var fileReadTooLarge: CocoaError.Code
static var fileReadUnknown: CocoaError.Code
static var fileReadUnknownStringEncoding: CocoaError.Code
static var fileReadUnsupportedScheme: CocoaError.Code
static var fileWriteFileExists: CocoaError.Code
static var fileWriteInapplicableStringEncoding: CocoaError.Code
static var fileWriteInvalidFileName: CocoaError.Code
static var fileWriteNoPermission: CocoaError.Code
static var fileWriteOutOfSpace: CocoaError.Code
static var fileWriteUnknown: CocoaError.Code
static var fileWriteUnsupportedScheme: CocoaError.Code
static var fileWriteVolumeReadOnly: CocoaError.Code
static var formatting: CocoaError.Code
static var keyValueValidation: CocoaError.Code
static var propertyListReadCorrupt: CocoaError.Code
static var propertyListReadStream: CocoaError.Code
static var propertyListReadUnknownVersion: CocoaError.Code
static var propertyListWriteInvalid: CocoaError.Code
static var propertyListWriteStream: CocoaError.Code
static var ubiquitousFileNotUploadedDueToQuota: CocoaError.Code
static var ubiquitousFileUbiquityServerNotAvailable: CocoaError.Code
static var ubiquitousFileUnavailable: CocoaError.Code
static var userActivityConnectionUnavailable: CocoaError.Code
static var userActivityHandoffFailed: CocoaError.Code
static var userActivityHandoffUserInfoTooLarge: CocoaError.Code
static var userActivityRemoteApplicationTimedOut: CocoaError.Code
static var userCancelled: CocoaError.Code
static var xpcConnectionInterrupted: CocoaError.Code
static var xpcConnectionInvalid: CocoaError.Code
static var xpcConnectionReplyInvalid: CocoaError.Code
static func error(CocoaError
.Code, userInfo: [AnyHashable : Any]?, url: URL?) -> Error var filePath: String?
The file path associated with the error, if any.
var isCoderError: Bool
var isExecutableError: Bool
var isFileError: Bool
var isFormattingError: Bool
var isPropertyListError: Bool
var isUbiquitousFileError: Bool
var isUserActivityError: Bool
var isValidationError: Bool
var isXPCConnectionError: Bool
var stringEncoding: String.Encoding?
The string encoding associated with this error, if any.
var underlying: Error?
The underlying error behind this error, if any.
var url: URL?
The URL associated with this error, if any.
struct Code
The error code itself.
Features
var halfWidthCornerQuoted: String
var localizedDescription: String
Retrieve the localized description for this error.
static func != (Self, Self
) -> Bool