guardia-messenger/node_modules/expo-secure-store/ios/SecureStoreExceptions.swift
DESKTOP-TKLFCPRython f29f525c77 refactor: 101.79.17.164 → zioinfo.co.kr 전체 도메인 변환 + Manager UI 배포
- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스)
- Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포
- 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 10:09:17 +09:00

65 lines
1.8 KiB
Swift

import ExpoModulesCore
internal class InvalidKeyException: Exception {
override var reason: String {
"Invalid key"
}
}
internal class MissingPlistKeyException: Exception {
override var reason: String {
"You must set `NSFaceIDUsageDescription` in your Info.plist file to use the `requireAuthentication` option"
}
}
internal class KeyChainException: GenericException<OSStatus> {
override var reason: String {
switch param {
case errSecUnimplemented:
return "Function or operation not implemented."
case errSecIO:
return "I/O error."
case errSecOpWr:
return "File already open with with write permission."
case errSecParam:
return "One or more parameters passed to a function where not valid."
case errSecAllocate:
return "Failed to allocate memory."
case errSecUserCanceled:
return "User canceled the operation."
case errSecBadReq:
return "Bad parameter or invalid state for operation."
case errSecNotAvailable:
return "No keychain is available. You may need to restart your computer."
case errSecDuplicateItem:
return "The specified item already exists in the keychain."
case errSecItemNotFound:
return "The specified item could not be found in the keychain."
case errSecInteractionNotAllowed:
return "User interaction is not allowed."
case errSecDecode:
return "Unable to decode the provided data."
case errSecAuthFailed:
return "Authentication failed. Provided passphrase/PIN is incorrect or there is no user authentication method configured for this device."
default:
if let errorMessage = SecCopyErrorMessageString(param, nil) as? String {
return errorMessage
}
return "Unknown Keychain Error."
}
}
}