Created
July 21, 2020 06:31
-
-
Save temoki/718ca4a80d5f7203c34211daff4337de to your computer and use it in GitHub Desktop.
All NSCocoaErrorDomain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
let allCodes: [(Int, String)] = [ | |
(NSFileNoSuchFileError,"NSFileNoSuchFileError"), | |
(NSFileLockingError,"NSFileLockingError"), | |
(NSFileReadUnknownError,"NSFileReadUnknownError"), | |
(NSFileReadNoPermissionError,"NSFileReadNoPermissionError"), | |
(NSFileReadInvalidFileNameError,"NSFileReadInvalidFileNameError"), | |
(NSFileReadCorruptFileError,"NSFileReadCorruptFileError"), | |
(NSFileReadNoSuchFileError,"NSFileReadNoSuchFileError"), | |
(NSFileReadInapplicableStringEncodingError,"NSFileReadInapplicableStringEncodingError"), | |
(NSFileReadUnsupportedSchemeError,"NSFileReadUnsupportedSchemeError"), | |
(NSFileReadTooLargeError,"NSFileReadTooLargeError"), | |
(NSFileReadUnknownStringEncodingError,"NSFileReadUnknownStringEncodingError"), | |
(NSFileWriteUnknownError,"NSFileWriteUnknownError"), | |
(NSFileWriteNoPermissionError,"NSFileWriteNoPermissionError"), | |
(NSFileWriteInvalidFileNameError,"NSFileWriteInvalidFileNameError"), | |
(NSFileWriteFileExistsError,"NSFileWriteFileExistsError"), | |
(NSFileWriteInapplicableStringEncodingError,"NSFileWriteInapplicableStringEncodingError"), | |
(NSFileWriteUnsupportedSchemeError,"NSFileWriteUnsupportedSchemeError"), | |
(NSFileWriteOutOfSpaceError,"NSFileWriteOutOfSpaceError"), | |
(NSFileWriteVolumeReadOnlyError,"NSFileWriteVolumeReadOnlyError"), | |
(NSKeyValueValidationError,"NSKeyValueValidationError"), | |
(NSFormattingError,"NSFormattingError"), | |
(NSUserCancelledError,"NSUserCancelledError"), | |
(NSFeatureUnsupportedError,"NSFeatureUnsupportedError"), | |
(NSExecutableNotLoadableError,"NSExecutableNotLoadableError"), | |
(NSExecutableArchitectureMismatchError,"NSExecutableArchitectureMismatchError"), | |
(NSExecutableRuntimeMismatchError,"NSExecutableRuntimeMismatchError"), | |
(NSExecutableLoadError,"NSExecutableLoadError"), | |
(NSExecutableLinkError,"NSExecutableLinkError"), | |
(NSFileErrorMinimum,"NSFileErrorMinimum"), | |
(NSFileErrorMaximum,"NSFileErrorMaximum"), | |
(NSValidationErrorMinimum,"NSValidationErrorMinimum"), | |
(NSValidationErrorMaximum,"NSValidationErrorMaximum"), | |
(NSExecutableErrorMinimum,"NSExecutableErrorMinimum"), | |
(NSExecutableErrorMaximum,"NSExecutableErrorMaximum"), | |
(NSFormattingErrorMinimum,"NSFormattingErrorMinimum"), | |
(NSFormattingErrorMaximum,"NSFormattingErrorMaximum"), | |
(NSPropertyListReadCorruptError,"NSPropertyListReadCorruptError"), | |
(NSPropertyListReadUnknownVersionError,"NSPropertyListReadUnknownVersionError"), | |
(NSPropertyListReadStreamError,"NSPropertyListReadStreamError"), | |
(NSPropertyListWriteStreamError,"NSPropertyListWriteStreamError"), | |
(NSPropertyListWriteInvalidError,"NSPropertyListWriteInvalidError"), | |
(NSPropertyListErrorMinimum,"NSPropertyListErrorMinimum"), | |
(NSPropertyListErrorMaximum,"NSPropertyListErrorMaximum"), | |
(NSXPCConnectionInterrupted,"NSXPCConnectionInterrupted"), | |
(NSXPCConnectionInvalid,"NSXPCConnectionInvalid"), | |
(NSXPCConnectionReplyInvalid,"NSXPCConnectionReplyInvalid"), | |
(NSXPCConnectionErrorMinimum,"NSXPCConnectionErrorMinimum"), | |
(NSXPCConnectionErrorMaximum,"NSXPCConnectionErrorMaximum"), | |
(NSUbiquitousFileUnavailableError,"NSUbiquitousFileUnavailableError"), | |
(NSUbiquitousFileNotUploadedDueToQuotaError,"NSUbiquitousFileNotUploadedDueToQuotaError"), | |
(NSUbiquitousFileUbiquityServerNotAvailable,"NSUbiquitousFileUbiquityServerNotAvailable"), | |
(NSUbiquitousFileErrorMinimum,"NSUbiquitousFileErrorMinimum"), | |
(NSUbiquitousFileErrorMaximum,"NSUbiquitousFileErrorMaximum"), | |
(NSUserActivityHandoffFailedError,"NSUserActivityHandoffFailedError"), | |
(NSUserActivityConnectionUnavailableError,"NSUserActivityConnectionUnavailableError"), | |
(NSUserActivityRemoteApplicationTimedOutError,"NSUserActivityRemoteApplicationTimedOutError"), | |
(NSUserActivityHandoffUserInfoTooLargeError,"NSUserActivityHandoffUserInfoTooLargeError"), | |
(NSUserActivityErrorMinimum,"NSUserActivityErrorMinimum"), | |
(NSUserActivityErrorMaximum,"NSUserActivityErrorMaximum"), | |
(NSCoderReadCorruptError,"NSCoderReadCorruptError"), | |
(NSCoderValueNotFoundError,"NSCoderValueNotFoundError"), | |
(NSCoderInvalidValueError,"NSCoderInvalidValueError"), | |
(NSCoderErrorMinimum,"NSCoderErrorMinimum"), | |
(NSCoderErrorMaximum,"NSCoderErrorMaximum"), | |
(NSBundleErrorMinimum,"NSBundleErrorMinimum"), | |
(NSBundleErrorMaximum,"NSBundleErrorMaximum"), | |
(NSBundleOnDemandResourceOutOfSpaceError,"NSBundleOnDemandResourceOutOfSpaceError"), | |
(NSBundleOnDemandResourceExceededMaximumSizeError,"NSBundleOnDemandResourceExceededMaximumSizeError"), | |
(NSBundleOnDemandResourceInvalidTagError,"NSBundleOnDemandResourceInvalidTagError"), | |
(NSCloudSharingNetworkFailureError,"NSCloudSharingNetworkFailureError"), | |
(NSCloudSharingQuotaExceededError,"NSCloudSharingQuotaExceededError"), | |
(NSCloudSharingTooManyParticipantsError,"NSCloudSharingTooManyParticipantsError"), | |
(NSCloudSharingConflictError,"NSCloudSharingConflictError"), | |
(NSCloudSharingNoPermissionError,"NSCloudSharingNoPermissionError"), | |
(NSCloudSharingOtherError,"NSCloudSharingOtherError"), | |
(NSCloudSharingErrorMinimum,"NSCloudSharingErrorMinimum"), | |
(NSCloudSharingErrorMaximum,"NSCloudSharingErrorMaximum"), | |
(NSCompressionFailedError,"NSCompressionFailedError"), | |
(NSDecompressionFailedError,"NSDecompressionFailedError"), | |
(NSCompressionErrorMinimum,"NSCompressionErrorMinimum"), | |
(NSCompressionErrorMaximum,"NSCompressionErrorMaximum"), | |
] | |
allCodes | |
.sorted { $0.0 < $1.0 } | |
.forEach { print("\($0.1),\($0.0)") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSFileErrorMinimum | 0 | |
---|---|---|
NSFileNoSuchFileError | 4 | |
NSFileLockingError | 255 | |
NSFileReadUnknownError | 256 | |
NSFileReadNoPermissionError | 257 | |
NSFileReadInvalidFileNameError | 258 | |
NSFileReadCorruptFileError | 259 | |
NSFileReadNoSuchFileError | 260 | |
NSFileReadInapplicableStringEncodingError | 261 | |
NSFileReadUnsupportedSchemeError | 262 | |
NSFileReadTooLargeError | 263 | |
NSFileReadUnknownStringEncodingError | 264 | |
NSFileWriteUnknownError | 512 | |
NSFileWriteNoPermissionError | 513 | |
NSFileWriteInvalidFileNameError | 514 | |
NSFileWriteFileExistsError | 516 | |
NSFileWriteInapplicableStringEncodingError | 517 | |
NSFileWriteUnsupportedSchemeError | 518 | |
NSFileWriteOutOfSpaceError | 640 | |
NSFileWriteVolumeReadOnlyError | 642 | |
NSFileErrorMaximum | 1023 | |
NSKeyValueValidationError | 1024 | |
NSValidationErrorMinimum | 1024 | |
NSValidationErrorMaximum | 2047 | |
NSFormattingError | 2048 | |
NSFormattingErrorMinimum | 2048 | |
NSFormattingErrorMaximum | 2559 | |
NSUserCancelledError | 3072 | |
NSFeatureUnsupportedError | 3328 | |
NSExecutableNotLoadableError | 3584 | |
NSExecutableErrorMinimum | 3584 | |
NSExecutableArchitectureMismatchError | 3585 | |
NSExecutableRuntimeMismatchError | 3586 | |
NSExecutableLoadError | 3587 | |
NSExecutableLinkError | 3588 | |
NSExecutableErrorMaximum | 3839 | |
NSPropertyListReadCorruptError | 3840 | |
NSPropertyListErrorMinimum | 3840 | |
NSPropertyListReadUnknownVersionError | 3841 | |
NSPropertyListReadStreamError | 3842 | |
NSPropertyListWriteStreamError | 3851 | |
NSPropertyListWriteInvalidError | 3852 | |
NSPropertyListErrorMaximum | 4095 | |
NSXPCConnectionErrorMinimum | 4096 | |
NSXPCConnectionInterrupted | 4097 | |
NSXPCConnectionInvalid | 4099 | |
NSXPCConnectionReplyInvalid | 4101 | |
NSXPCConnectionErrorMaximum | 4224 | |
NSUbiquitousFileErrorMinimum | 4352 | |
NSUbiquitousFileUnavailableError | 4353 | |
NSUbiquitousFileNotUploadedDueToQuotaError | 4354 | |
NSUbiquitousFileUbiquityServerNotAvailable | 4355 | |
NSUbiquitousFileErrorMaximum | 4607 | |
NSUserActivityHandoffFailedError | 4608 | |
NSUserActivityErrorMinimum | 4608 | |
NSUserActivityConnectionUnavailableError | 4609 | |
NSUserActivityRemoteApplicationTimedOutError | 4610 | |
NSUserActivityHandoffUserInfoTooLargeError | 4611 | |
NSUserActivityErrorMaximum | 4863 | |
NSCoderReadCorruptError | 4864 | |
NSCoderErrorMinimum | 4864 | |
NSCoderValueNotFoundError | 4865 | |
NSCoderInvalidValueError | 4866 | |
NSCoderErrorMaximum | 4991 | |
NSBundleErrorMinimum | 4992 | |
NSBundleOnDemandResourceOutOfSpaceError | 4992 | |
NSBundleOnDemandResourceExceededMaximumSizeError | 4993 | |
NSBundleOnDemandResourceInvalidTagError | 4994 | |
NSBundleErrorMaximum | 5119 | |
NSCloudSharingNetworkFailureError | 5120 | |
NSCloudSharingErrorMinimum | 5120 | |
NSCloudSharingQuotaExceededError | 5121 | |
NSCloudSharingTooManyParticipantsError | 5122 | |
NSCloudSharingConflictError | 5123 | |
NSCloudSharingNoPermissionError | 5124 | |
NSCloudSharingOtherError | 5375 | |
NSCloudSharingErrorMaximum | 5375 | |
NSCompressionFailedError | 5376 | |
NSCompressionErrorMinimum | 5376 | |
NSDecompressionFailedError | 5377 | |
NSCompressionErrorMaximum | 5503 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment