StructureFoundation
CocoaError
Describes errors within the Cocoa error domain.
struct CocoaError
Describes errors within the Cocoa error domain.
struct CocoaError
static var coderInvalidValue: CocoaError.Code
static var coderReadCorrupt: CocoaError.Code
static var coderValueNotFound: CocoaError.Code
static var errorDomain: String
Default domain of the error.
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
var errorCode: Int
The error code within the given domain.
var errorUserInfo: [String : Any]
The default user-info dictionary.
var filePath: String?
The file path associated with the error, if any.
var halfWidthCornerQuoted: String
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 localizedDescription: String
Retrieve the localized description for this error.
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.