# Code

    enum Code

    extension LSError.Code : Equatable, Hashable, RawRepresentable, Sendable, SendableMetatype

LicenseSpring error codes. Some errors comes from server and described at https://docs.licensespring.com/docs/errors-and-response-codes-1

- `unknown`

  Undocumented

  #### Declaration

  Swift

      case unknown

- `emptyApiKey`

  Undocumented

  #### Declaration

  Swift

      case emptyApiKey

- `emptySharedKey`

  Undocumented

  #### Declaration

  Swift

      case emptySharedKey

- `emptyProductCode`

  Undocumented

  #### Declaration

  Swift

      case emptyProductCode

- `inaccessibleLicensePath`

  Undocumented

  #### Declaration

  Swift

      case inaccessibleLicensePath

- `requestFailed`

  Undocumented

  #### Declaration

  Swift

      case requestFailed

- `badResponse`

  Undocumented

  #### Declaration

  Swift

      case badResponse

- `hardwareIDMismatch`

  Undocumented

  #### Declaration

  Swift

      case hardwareIDMismatch

- `productCodeMismatch`

  Undocumented

  #### Declaration

  Swift

      case productCodeMismatch

- `licenseKeyMismatch`

  Undocumented

  #### Declaration

  Swift

      case licenseKeyMismatch

- `userMismatch`

  Undocumented

  #### Declaration

  Swift

      case userMismatch

- `fileCorrupted`

  Undocumented

  #### Declaration

  Swift

      case fileCorrupted

- `invalidServiceURL`

  Undocumented

  #### Declaration

  Swift

      case invalidServiceURL

- `invalidAirGapKey`

  Undocumented

  #### Declaration

  Swift

      case invalidAirGapKey

- `policyIDMismatch`

  Undocumented

  #### Declaration

  Swift

      case policyIDMismatch

- `invalidArgument`

  Undocumented

  #### Declaration

  Swift

      case invalidArgument

- `emptyClientId`

  Undocumented

  #### Declaration

  Swift

      case emptyClientId

- `emptyClientSecret`

  Undocumented

  #### Declaration

  Swift

      case emptyClientSecret

- `clockTampered`

  Undocumented

  #### Declaration

  Swift

      case clockTampered

- `activeLicenseRequired`

  Undocumented

  #### Declaration

  Swift

      case activeLicenseRequired

- `authenticationFailure`

  Undocumented

  #### Declaration

  Swift

      case authenticationFailure

- `authorizationInvalidHeaders`

  Undocumented

  #### Declaration

  Swift

      case authorizationInvalidHeaders

- `authorizationMissingParams`

  Undocumented

  #### Declaration

  Swift

      case authorizationMissingParams

- `blacklisted`

  Undocumented

  #### Declaration

  Swift

      case blacklisted

- `changePasswordNotAllowed`

  Undocumented

  #### Declaration

  Swift

      case changePasswordNotAllowed

- `deviceNotFound`

  Undocumented

  #### Declaration

  Swift

      case deviceNotFound

- `emailMissing`

  Undocumented

  #### Declaration

  Swift

      case emailMissing

- `floatingNotAvailable`

  Undocumented

  #### Declaration

  Swift

      case floatingNotAvailable

- `hmacRequired`

  Undocumented

  #### Declaration

  Swift

      case hmacRequired

- `internalError`

  Undocumented

  #### Declaration

  Swift

      case internalError

- `invalidApiKey`

  Undocumented

  #### Declaration

  Swift

      case invalidApiKey

- `invalidProductAuthMethod`

  Undocumented

  #### Declaration

  Swift

      case invalidProductAuthMethod

- `licenseActivatedMaxTimes`

  Undocumented

  #### Declaration

  Swift

      case licenseActivatedMaxTimes

- `licenseStartDateError`

  Undocumented

  #### Declaration

  Swift

      case licenseStartDateError

- `licenseTransferredMaxTimes`

  Undocumented

  #### Declaration

  Swift

      case licenseTransferredMaxTimes

- `licenseExpired`

  Undocumented

  #### Declaration

  Swift

      case licenseExpired

- `licenseKeyOrLicenseUserRequired`

  Undocumented

  #### Declaration

  Swift

      case licenseKeyOrLicenseUserRequired

- `licenseKeyExists`

  Undocumented

  #### Declaration

  Swift

      case licenseKeyExists

- `licenseDeviceExists`

  Undocumented

  #### Declaration

  Swift

      case licenseDeviceExists

- `licenseKeyRequired`

  Undocumented

  #### Declaration

  Swift

      case licenseKeyRequired

- `licenseNotActive`

  Undocumented

  #### Declaration

  Swift

      case licenseNotActive

- `licenseNotConsumption`

  Undocumented

  #### Declaration

  Swift

      case licenseNotConsumption

- `licenseNotEnabled`

  Undocumented

  #### Declaration

  Swift

      case licenseNotEnabled

- `licenseNotEnoughConsumptions`

  Undocumented

  #### Declaration

  Swift

      case licenseNotEnoughConsumptions

- `featureNotEnoughConsumptions`

  Undocumented

  #### Declaration

  Swift

      case featureNotEnoughConsumptions

- `licenseNotFound`

  Undocumented

  #### Declaration

  Swift

      case licenseNotFound

- `licenseUserNotFound`

  Undocumented

  #### Declaration

  Swift

      case licenseUserNotFound

- `licenseUserActivatedMaxTimes`

  Undocumented

  #### Declaration

  Swift

      case licenseUserActivatedMaxTimes

- `missingHardwareId`

  Undocumented

  #### Declaration

  Swift

      case missingHardwareId

- `missingHeaders`

  Undocumented

  #### Declaration

  Swift

      case missingHeaders

- `missingParameters`

  Undocumented

  #### Declaration

  Swift

      case missingParameters

- `offlineSignatureMismatch`

  Undocumented

  #### Declaration

  Swift

      case offlineSignatureMismatch

- `offlineFloatingCloudNotSupported`

  Undocumented

  #### Declaration

  Swift

      case offlineFloatingCloudNotSupported

- `orderIdExists`

  Undocumented

  #### Declaration

  Swift

      case orderIdExists

- `ssoCustomerAccountTokenError`

  Undocumented

  #### Declaration

  Swift

      case ssoCustomerAccountTokenError

- `ssoCustomerAccountUrlError`

  Undocumented

  #### Declaration

  Swift

      case ssoCustomerAccountUrlError

- `signatureMismatch`

  Undocumented

  #### Declaration

  Swift

      case signatureMismatch

- `subscriptionNotFound`

  Undocumented

  #### Declaration

  Swift

      case subscriptionNotFound

- `trialExpired`

  Undocumented

  #### Declaration

  Swift

      case trialExpired

- `licenseBorrowNotAllowed`

  Undocumented

  #### Declaration

  Swift

      case licenseBorrowNotAllowed

- `borrowUntilNotValid`

  Undocumented

  #### Declaration

  Swift

      case borrowUntilNotValid

- `unknownProduct`

  Undocumented

  #### Declaration

  Swift

      case unknownProduct

- `unknownProductCode`

  Undocumented

  #### Declaration

  Swift

      case unknownProductCode

- `unsupportedProductFeature`

  Undocumented

  #### Declaration

  Swift

      case unsupportedProductFeature

- `versionNotFound`

  Undocumented

  #### Declaration

  Swift

      case versionNotFound

- `vmNotAllowed`

  Undocumented

  #### Declaration

  Swift

      case vmNotAllowed

- `trialNotAllowed`

  Undocumented

  #### Declaration

  Swift

      case trialNotAllowed

- `dateHeaderInvalid`

  Undocumented

  #### Declaration

  Swift

      case dateHeaderInvalid

- `oAuthProductNotAllowed`

  Undocumented

  #### Declaration

  Swift

      case oAuthProductNotAllowed

- `oAuthRequired`

  Undocumented

  #### Declaration

  Swift

      case oAuthRequired

- `oAuthExpired`

  Undocumented

  #### Declaration

  Swift

      case oAuthExpired

- `oAuthMalformed`

  Undocumented

  #### Declaration

  Swift

      case oAuthMalformed

- `productNotBundle`

  Undocumented

  #### Declaration

  Swift

      case productNotBundle

- `negativeConsumptionsNotAllowed`

  Undocumented

  #### Declaration

  Swift

      case negativeConsumptionsNotAllowed

- `init(rawValue:)`

  Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: Int)

  #### Parameters

  `rawValue` | The raw value to use for the new instance.

© 2025 LicenseSpring. All rights reserved. (Last updated: 2025-10-22)

Generated by jazzy ♪♫ v0.15.3, a Realm project.