Error Handling

In the event of an error, onFinishSelfieScanWithError(_ errorCode: Int32, errorMessage: String!) will be invoked on CFASelfieScanDelegate.

Near Selfie Capture Error Codes

Error Code

Message

4000

You cannot access Selfie scan, as camera permission is not enabled

4001

resetTimeOutInSec should be greater than 0

4002

blurIntensity should be between 0 to 100

4003

eyeIntensity should be between 0 to 100

4004

faceMotion should be between 0 to 1

4005

eyeMotion should be between 0 to 1

4006

roiFocusThreshold should be between 0 to 254

4007

compressionQuality should be between 0 to 100

4008

useBackCamera cannot be used when Far Selfie is enabled

4010

Exception returned by camera

4011

Unable to capture Selfie due to timeout

Far Selfie Capture Error Codes

Error Code

Message

4050

resetTimeOutInSec should be greater than 0

4051

blurIntensity should be between 0 to 100

4055

roiFocusThreshold should be between 0 to 254

4056

compressionQuality should be between 0 to 100

4058

Unable to capture Far Selfie due to timeout