Mobbeel for developers

Mobbeel for developers

  • MobbScan
  • MobbID
  • MobbSign
  • Clients
  • FAQ

›Getting Started

MobbScan Android SDK

  • Configure MobbScan Android SDK

Getting Started

  • Getting started with MobbScan
  • Detect and scan a document in two different calls
  • Detect and scan MRZ
  • Detect and scan a PDF417
  • Scanning documents with NFC
  • Error Handling

Additional configuration

  • Configure the detection process
  • Perform face matching with MobbScan
  • Select images returned by a scan
  • Fix scan orientation
  • Record a video while user performs a scan
  • Adding a video step
  • Configure Play Store distribution

MobbScan UI customization

  • Customize MobbScan Default Interfaces
  • Customize MobbScan document scan UI
  • Customize MobbScan MRZ scan UI
  • Customize Unattended Process UI
  • Customize feedback messages

MobbScan-Agent configurations

  • Getting the verification result

Migration Guides

  • Migration 2.25.x to 2.26.x
  • Migration 2.24.x to 2.25.x
  • Migration to 2.24.x
  • Migration to 2.22.x
  • Migration 2.19.x to 2.21.x
  • Migration 2.18.x to 2.19.x
  • Migration 2.13.x to 2.14.x

Information

  • Changelog
  • API Reference

Error Handling

Overview

As you might have read along these documents, most of the MobbScanAPI callbacks have an error as their last argument. This is the way MobbScan let you know the reason why a process did not end successfully.

The possible error comes in the form of a MobbScanAPIError where:

  • MobbScanAPIErrorCode: is a String which value matches the enum type MobbScanAPIErrorCode
  • extraInfo: is a Map for further information, being both keys and values String

Error Codes

The following table shows the possible error codes and their meaning:

CodeMeaning
UNEXPECTED_ERRORSomething unexpected happened during the process
CONNECTION_ERRORA network connection error happened
TIMEOUT_ERRORThe process timeout expired
WRONG_PARAMETERS_ERRORSome of the parameters are not valid
SCANNING_PROCESS_CANCELLEDThe user cancelled the scanning process
DOCUMENT_NOT_CLASSIFIEDThe system is not able to classify the document (only applicable for generic document types, i.e. ESP)
DOCUMENT_NOT_VALIDThe document did not pass the validations (applicable when specific validations are activated)
LICENSE_ERRORThe license is not valid or has not been configured
PERMISSION_ERRORThe required app permissions have not been granted
API_NOT_INITIALIZED_ERRORMobbScanAPI was not properly initialised
DEVICE_NOT_COMPATIBLEDevice does not fulfill the minimum requirements
NOT_AVAILABLE_IN_OFFLINE_MODEThe process is only available online
CAPTURE_FACE_ERRORFacial detection could not accomplished
STARTING_VIDEO_ERRORAn error ocurred when starting the unattended video
FINISHING_VIDEO_ERRORAn error ocurred when finishing the unattended video
USER_CANCELLED_ERRORThe user cancelled any process (document detection, face validation...)
VIDEO_RECORDING_ERRORAn error ocurred while the unattended video is being recorded
ANTISPOOFING_ERRORThe antispoofing mechanism cannot ensure the user is genuine
VIDEO_LIVENESS_VIDEO_NO_FACENo faces has been found in the face validation video
VIDEO_LIVENESS_NO_MOVEMENTNo face movement has been found in the face validation video
VIDEO_LIVENESS_INVALID_FORMATThe video provided for the face validation process does not match the required format
VIDEO_LIVENESS_MULTIPLE_FACESMore than one face has been detected in the face validation video
VIDEO_LIVENESS_LIVENESS_ERRORAn error ocurred while performing the face detection in the face validation video
VIDEO_LIVENESS_MATCHING_ERRORAn error ocurred while performing the face matching in the face validation process
VIDEO_LIVENESS_WRONG_SCANIDProvided scanId does not correspond to a valid started process
UNATTENDED_VIDEO_TIMEOUTThe unattended video process exceeded the timeout
UNATTENDED_VIDEO_CANCEL_ERRORThe unattended video cancellation went wrong

Extra Information

As mentioned above, chances are that a process may need to expose further information about an error. This is an example of what you would get for a scan process when the validations failed:

Kotlin
Java
println("Failed validations: ${error.extraInfo["errorDetails"]}")
System.out.println("Failed validations: " + error.getExtraInfo().get("errorDetails"));

The console will print:

Failed validations: validationMRZ, validationDocumentNotExpired, validationBothSidesMatchScore
← Scanning documents with NFCConfigure the detection process →
  • Overview
  • Error Codes
  • Extra Information
Mobbeel for developers
Product Documentation
MobbIDMobbScanMobbSign
Connect
LinkedInFacebookX
More
FAQContact Us
Mobbeel Solutions SL
Copyright © 2025 Mobbeel Solutions SL