NSCocoaErrorDomainのエラー達


NSCocoaErrorDomainのエラーコードとエラー名の対応表

```swift
let array: [(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"),
    (NSFileManagerUnmountUnknownError, "NSFileManagerUnmountUnknownError"),
    (NSFileManagerUnmountBusyError, "NSFileManagerUnmountBusyError"),
    (NSKeyValueValidationError, "NSKeyValueValidationError"),
    (NSFormattingError, "NSFormattingError"),
    (NSUserCancelledError, "NSUserCancelledError"),
    (NSFeatureUnsupportedError, "NSFeatureUnsupportedError"),
    (NSExecutableNotLoadableError, "NSExecutableNotLoadableError"),
    (NSExecutableArchitectureMismatchError, "NSExecutableArchitectureMismatchError"),
    (NSExecutableRuntimeMismatchError, "NSExecutableRuntimeMismatchError"),
    (NSExecutableLoadError, "NSExecutableLoadError"),
    (NSExecutableLinkError, "NSExecutableLinkError"),
    (NSFileErrorMinimum, "NSFileErrorMinimum"),
    (NSFileErrorMaximum, "NSFileErrorMaximum"),
    (NSValidationErrorMaximum, "NSValidationErrorMaximum"),
    (NSExecutableErrorMinimum, "NSExecutableErrorMinimum"),
    (NSExecutableErrorMaximum, "NSExecutableErrorMaximum"),
    (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"),
    (NSCoderErrorMinimum, "NSCoderErrorMinimum"),
    (NSCoderErrorMaximum, "NSCoderErrorMaximum"),
    (NSBundleErrorMinimum, "NSBundleErrorMinimum"),
    (NSBundleErrorMaximum, "NSBundleErrorMaximum"),
    (NSCloudSharingNetworkFailureError, "NSCloudSharingNetworkFailureError"),
    (NSCloudSharingQuotaExceededError, "NSCloudSharingQuotaExceededError"),
    (NSCloudSharingTooManyParticipantsError, "NSCloudSharingTooManyParticipantsError"),
    (NSCloudSharingConflictError, "NSCloudSharingConflictError"),
    (NSCloudSharingNoPermissionError, "NSCloudSharingNoPermissionError"),
    (NSCloudSharingOtherError, "NSCloudSharingOtherError"),
    (NSCloudSharingErrorMinimum, "NSCloudSharingErrorMinimum"),
    (NSCloudSharingErrorMaximum, "NSCloudSharingErrorMaximum"),
    
    (NSManagedObjectConstraintValidationError, "NSManagedObjectConstraintValidationError"),
    (NSValidationMultipleErrorsError, "NSValidationMultipleErrorsError"),
    (NSValidationMissingMandatoryPropertyError, "NSValidationMissingMandatoryPropertyError"),
    (NSValidationRelationshipLacksMinimumCountError, "NSValidationRelationshipLacksMinimumCountError"),
    (NSValidationRelationshipExceedsMaximumCountError, "NSValidationRelationshipExceedsMaximumCountError"),
    (NSValidationRelationshipDeniedDeleteError, "NSValidationRelationshipDeniedDeleteError"),
    (NSValidationNumberTooLargeError, "NSValidationNumberTooLargeError"),
    (NSValidationNumberTooSmallError, "NSValidationNumberTooSmallError"),
    (NSValidationDateTooLateError, "NSValidationDateTooLateError"),
    (NSValidationDateTooSoonError, "NSValidationDateTooSoonError"),
    (NSValidationInvalidDateError, "NSValidationInvalidDateError"),
    (NSValidationStringTooLongError, "NSValidationStringTooLongError"),
    (NSValidationStringTooShortError, "NSValidationStringTooShortError"),
    (NSValidationStringPatternMatchingError, "NSValidationStringPatternMatchingError"),
    (NSValidationInvalidURIError, "NSValidationInvalidURIError"),
    
    (NSPersistentStoreCoordinatorLockingError, "NSPersistentStoreCoordinatorLockingError"),
    
    (NSManagedObjectExternalRelationshipError, "NSManagedObjectExternalRelationshipError"),
    (NSManagedObjectMergeError, "NSManagedObjectMergeError"),
    (NSManagedObjectConstraintMergeError, "NSManagedObjectConstraintMergeError"),
    
    (NSPersistentStoreTypeMismatchError, "NSPersistentStoreTypeMismatchError"),
    (NSPersistentStoreIncompatibleSchemaError, "NSPersistentStoreIncompatibleSchemaError"),
    (NSPersistentStoreSaveError, "NSPersistentStoreSaveError"),
    (NSPersistentStoreIncompleteSaveError, "NSPersistentStoreIncompleteSaveError"),
    (NSPersistentStoreSaveConflictsError, "NSPersistentStoreSaveConflictsError"),
    
    (NSPersistentStoreOperationError, "NSPersistentStoreOperationError"),
    (NSPersistentStoreOpenError, "NSPersistentStoreOpenError"),
    (NSPersistentStoreTimeoutError, "NSPersistentStoreTimeoutError"),
    (NSPersistentStoreUnsupportedRequestTypeError, "NSPersistentStoreUnsupportedRequestTypeError"),
    
    (NSMigrationError, "NSMigrationError"),
    (NSMigrationConstraintViolationError, "NSMigrationConstraintViolationError"),
    (NSMigrationCancelledError, "NSMigrationCancelledError"),
    (NSMigrationMissingSourceModelError, "NSMigrationMissingSourceModelError"),
    (NSMigrationMissingMappingModelError, "NSMigrationMissingMappingModelError"),
    (NSMigrationManagerSourceStoreError, "NSMigrationManagerSourceStoreError"),
    (NSMigrationManagerDestinationStoreError, "NSMigrationManagerDestinationStoreError"),
    (NSEntityMigrationPolicyError, "NSEntityMigrationPolicyError"),
    (NSExternalRecordImportError, "NSExternalRecordImportError"),
]

array.map { print($0) }
```

NSXXXMinimum, NSXXXMaximumはエラーコードではないです。