Skip to main content
Version: 1.0

2.1.1.4 VerifySpeed Error

VerifySpeed Errors

This document describes the error handling system used in the VerifySpeed Flutter integration.

VerifySpeedError

VerifySpeedError is a class that represents errors that can occur during the verification process. It contains a message and an error type.

Properties

  • message (String?): A human-readable description of the error
  • type (VerifySpeedErrorType): The specific type of error that occurred

VerifySpeedErrorType

An enumeration of all possible error types that can occur during the verification process.

Available Error Types

Error TypeDescription
clientAn error occurred on the client side
serverAn error occurred on the server side
verificationFailedThe verification process failed
appNotInstalledThe required application is not installed
clientKeyNotSetThe client key has not been set
notFoundVerificationMethodNo suitable verification method was found
invalidDeepLinkThe deep link provided is invalid
invalidPhoneNumberThe provided phone number is invalid
activeSessionNotFoundNo active verification session was found
unknownAn unknown or unspecified error occurred

Error Handling Example

    await deepLinkProcessor.verifyPhoneNumberWithDeepLink(
...,
onFailure: (error) {
switch (error.type) {
case VerifySpeedErrorType.verificationFailed:
print('Please try again');
break;
case VerifySpeedErrorType.appNotInstalled:
print('Please install the app and try again');
case VerifySpeedErrorType.invalidPhoneNumber:
print('Please enter a valid phone number');
break;
default:
}
},
);