Errors

The biidCoreSDK defines the following error models objects, each returned for it’s respective completion handler

e.g. an InvalidTokenError is returned with the onInvalidToken completion handler

onInvalidToken: @escaping (_ error : InvalidTokenError) -> Void

See Error Handling for further information.

  • biidCoreSDK Error baseclass

    See more

    Declaration

    Swift

    protocol BiidError : CustomStringConvertible, Error
  • Error object returned with an onClientError completion handler. Returned when a biid Client method has failed

    See more

    Declaration

    Swift

    public struct ClientError : BiidError
  • Error object returned with an onDeviceVerificationLimitError completion handler. Returned when the user has reached the limit for requesting a verification code for the device.

    See more

    Declaration

    Swift

    public struct DeviceVerificationLimitError : BiidError
  • Error object returned with an onExpiredVerificationCodeError completion handler. Returned when the user has to request a verification code (again).

    See more

    Declaration

    Swift

    public struct ExpiredVerificationCodeError : BiidError
  • Error object returned with an onInvalidTokenError completion handler. Returned when the user’s authentication has expired. The resolution specifies how this can be resolved.

    See more

    Declaration

    Swift

    public struct InvalidTokenError : BiidError
  • Error object returned with an onTransactionNotPendingError completion handler. Returned when a transaction is not pending i.e. cannot be signed or rejected

    See more

    Declaration

    Swift

    public struct TransactionNotPendingError : BiidError
  • Error object returned with an onUserAlreadyRegisteredError completion handler. Returned when user registration failed because the user is already registered.

    See more

    Declaration

    Swift

    public struct UserAlreadyRegisteredError : BiidError
  • Error object returned with an onUserLockedError completion handler. Returned when the user has been locked because an invalid verification code has been entered too many times.

    See more

    Declaration

    Swift

    public struct UserLockedError : BiidError
  • Error object returned with an onUserNotAccreditedError completion handler. Returned when the user has not been accredited and no DIAC has yet been generated.

    See more

    Declaration

    Swift

    public struct UserNotAccreditedError : BiidError
  • Error object returned with an onValidationError completion handler. Returned when one or more parameters are not valid. The error contains a mapping between field names and error messages. A field name is either a user field name as defined in the backoffice or a parameter name of the biid Client method.

    See more

    Declaration

    Swift

    public struct ValidationError : BiidError