LineSDKErrorConstant.swift 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // LineSDKErrorConstant.swift
  3. //
  4. // Copyright (c) 2016-present, LY Corporation. All rights reserved.
  5. //
  6. // You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
  7. // copy and distribute this software in source code or binary form for use
  8. // in connection with the web services and APIs provided by LY Corporation.
  9. //
  10. // As with any software that integrates with the LY Corporation platform, your use of this software
  11. // is subject to the LINE Developers Agreement [http://terms2.line.me/LINE_Developers_Agreement].
  12. // This copyright notice shall be included in all copies or substantial portions of the software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
  15. // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  17. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  18. // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  19. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  20. //
  21. @objcMembers
  22. public class LineSDKErrorConstant: NSObject {
  23. public static let errorDomain = LineSDKError.errorDomain
  24. public static let cryptoErrorDomain = CryptoError.errorDomain
  25. public static let userInfoKeyUnderlyingError = LineSDKErrorUserInfoKey.underlyingError.rawValue
  26. public static let userInfoKeyStatusCode = LineSDKErrorUserInfoKey.statusCode.rawValue
  27. public static let userInfoKeyResultCode = LineSDKErrorUserInfoKey.resultCode.rawValue
  28. public static let userInfoKeyType = LineSDKErrorUserInfoKey.type.rawValue
  29. public static let userInfoKeyData = LineSDKErrorUserInfoKey.data.rawValue
  30. public static let userInfoKeyAPIError = LineSDKErrorUserInfoKey.APIError.rawValue
  31. public static let userInfoKeyRaw = LineSDKErrorUserInfoKey.raw.rawValue
  32. public static let userInfoKeyUrl = LineSDKErrorUserInfoKey.url.rawValue
  33. public static let userInfoKeyMessage = LineSDKErrorUserInfoKey.message.rawValue
  34. public static let userInfoKeyStatus = LineSDKErrorUserInfoKey.status.rawValue
  35. public static let userInfoKeyText = LineSDKErrorUserInfoKey.text.rawValue
  36. public static let userInfoKeyEncoding = LineSDKErrorUserInfoKey.encoding.rawValue
  37. public static let userInfoKeyParameterName = LineSDKErrorUserInfoKey.parameterName.rawValue
  38. public static let userInfoKeyReason = LineSDKErrorUserInfoKey.reason.rawValue
  39. public static let userInfoKeyIndex = LineSDKErrorUserInfoKey.index.rawValue
  40. public static let userInfoKeyKey = LineSDKErrorUserInfoKey.key.rawValue
  41. public static let userInfoKeyGot = LineSDKErrorUserInfoKey.got.rawValue
  42. }