TwilioVerifyError

public enum TwilioVerifyError : LocalizedError

Error types returned by the TwilioVerify SDK. It encompasess different types of errors that have their own associated reasons and codes.

  • NetworkError: An error occurred while calling the API.
  • MapperError: An error occurred while mapping an entity.
  • StorageError: An error occurred while storing/loading an entity.
  • InputError: An error occurred while loading input.
  • KeyStorageError: An error occurred while storing/loading keypairs.
  • InitializationError: An error occurred while initializing a class.
  • AuthenticationTokenError: An error occurred while generating a token.
  • An error occurred while calling the API.

    Declaration

    Swift

    case networkError(error: Error)
  • An error occurred while mapping an entity.

    Declaration

    Swift

    case mapperError(error: Error)
  • An error occurred while storing/loading an entity.

    Declaration

    Swift

    case storageError(error: Error)
  • An error occurred while loading input.

    Declaration

    Swift

    case inputError(error: Error)
  • An error occurred while storing/loading keypairs.

    Declaration

    Swift

    case keyStorageError(error: Error)
  • An error occurred while initializing a class.

    Declaration

    Swift

    case initializationError(error: Error)
  • An error occurred while generating a token.

    Declaration

    Swift

    case authenticationTokenError(error: Error)
  • Associated reason of the error

    Declaration

    Swift

    public var originalError: Error { get }
  • Brief description of the error, indicates at which layer the error ocurred

    Declaration

    Swift

    public var errorDescription: String? { get }
  • Error code of the associated error

    • NetworkError:
    • MapperError:
    • StorageError:
    • InputError:
    • KeyStorageError:
    • InitializationError:
    • AuthenticationTokenError:

    Declaration

    Swift

    public var code: Int { get }