---
title: एरर हैंडलिंग
canonical: https://developer.unico.io/hi/dual-api/developers/sdks-and-tools/android/error-handling
locale: hi
generated_by: markdown-export
---

Android SDK की सभी एरर हैंडलिंग इस सेक्शन में केंद्रित है। `onErrorAcessoBio` callback को एक `ErrorBio` ऑब्जेक्ट मिलता है जिसमें `code` (Int) और `description` (String) होते हैं।

## कॉलबैक को हैंडल करना

### Kotlin

  ```kotlin
  override fun onErrorAcessoBio(error: ErrorBio) {
    when (error.code) {
      73002 -> { /* camera permission denied — redirect to app settings */ }
      73006 -> { /* running on emulator — physical device required */ }
      73100 -> { /* no internet connection */ }
      else -> { /* generic error handling */ }
    }
  }
  ```

### Java

  ```java
  @Override
  public void onErrorAcessoBio(ErrorBio error) {
    switch (error.getCode()) {
      case 73002: /* camera permission denied — redirect to app settings */ break;
      case 73006: /* running on emulator — physical device required */ break;
      case 73100: /* no internet connection */ break;
      default: /* generic error handling */
    }
  }
  ```

## लाइफसाइकिल कॉलबैक

`onErrorAcessoBio` के अलावा, SDK ये भी ट्रिगर करता है:

- `onUserClosedCameraManually()` — उपयोगकर्ता ने कैमरा मैन्युअल रूप से बंद किया।
- `onSystemClosedCameraTimeoutSession()` — टाइमआउट के कारण सत्र समाप्त हुआ।
- `onSystemChangedTypeCameraTimeoutFaceInference()` — 13 सेकंड तक कोई चेहरा नहीं पकड़ा गया; SDK मैन्युअल कैप्चर पर स्विच करता है।

## एरर कोड

सभी एरर कोड `UnicoException` enum से आते हैं और `ErrorBio(code, message)` के माध्यम से दिए जाते हैं। `message` फ़ील्ड में SDK की सटीक स्ट्रिंग होती है — इसे संशोधित या अनुवादित न करें।

| कोड | संदेश | विवरण |
|---|---|---|
| `73001` | `Context invalid` | SDK को पास किया गया Android context अमान्य है |
| `73002` | `Did not grant permission to open camera` | उपयोगकर्ता ने कैमरा अनुमति अस्वीकार कर दी |
| `73003` | `The lest API is 21(LOLLIPOP` | डिवाइस का API स्तर न्यूनतम आवश्यकता (API 21) से कम है |
| `73004` | `Could not find implementation interface callback iAcessoBioSelfie` | `iAcessoBioSelfie` इंटरफेस लागू नहीं किया गया |
| `73005` | `Could not find implementation interface callback iAcessoBioDocument` | `iAcessoBioDocument` इंटरफेस लागू नहीं किया गया |
| `73006` | `Unable to open camera on emulators` | SDK एमुलेटर पर नहीं चलता — भौतिक डिवाइस उपयोग करें |
| `73007` | `Unknown and unexpected error in WebApp…` | WebApp में सामान्य त्रुटि (कैमरा, स्टोरेज, सुरक्षा, नेटवर्किंग) |
| `73100` | `Unable to connect to internet.` | कोई इंटरनेट कनेक्शन उपलब्ध नहीं |
| `73200` | `Please inform the config object or json file name` | कॉन्फ़िग ऑब्जेक्ट या JSON फ़ाइल नाम प्रदान नहीं किया गया |
| `73202` | `Unable to parse json file` | JSON कॉन्फ़िगरेशन फ़ाइल खराब है |
| `73204` | `Unable to initialize the SDK, please configure the environment on setEnviroment method of build` | आरंभीकरण से पहले `setEnvironment()` नहीं बुलाया गया |
| `73300` | `Unable to get unico authentication object` | प्रमाणीकरण ऑब्जेक्ट प्राप्त करने में विफल |
| `73301` | `Unable to parse object` | प्रमाणीकरण प्रतिक्रिया parse करने में विफल |
| `73302` | `Could not find the unico token` | Unico auth टोकन नहीं मिला |
| `73303` | `Current host is not registered` | SDK Key में बंडल पहचानकर्ता पंजीकृत नहीं है |
| `73400` | `Could not initialize camera` | कैमरा आरंभीकरण विफल |
| `73701` | `Could not find active liveness import` | सक्रिय लाइवनेस मॉड्यूल नहीं मिला |
| `73703` | `Unable to get active liveness session` | लाइवनेस सत्र प्राप्त करने में विफल |
| `73718` | `The Session was cancelled because of an unknown and unexpected error…` | अज्ञात आंतरिक सत्र त्रुटि |
| `73721` | `The Session can't be performed: attempts limit exceeded.` | सत्र रद्द — कैप्चर प्रयास सीमा पार हुई |
| `73722` | `The Session can't be performed: face alignment timeout.` | सत्र रद्द — चेहरा संरेखण टाइमआउट |
| `73726` | `An error happened during video recording` | लाइवनेस के दौरान वीडियो रिकॉर्डिंग में त्रुटि |
| `73727` | `No actions found in a video` | वीडियो में कोई लाइवनेस क्रिया नहीं पाई गई |
| `73740` | `The user pressed the do not consent button and did not complete the Session.` | उपयोगकर्ता ने सहमति अस्वीकार की |
| `73800` | `Could not build encrypted key.` | एन्क्रिप्टेड JWT बनाने में विफल |
| `73801` | `The Session of SDK was cancelled because of an unknown and unexpected error.` | SDK सत्र की अज्ञात आंतरिक त्रुटि |
| `73802` | `The Session was cancelled because of an unknown and unexpected error…` | सत्र रद्द — आवश्यक JWT फ़ील्ड अनुपस्थित |
| `73900` | `Erro ao analisar imagem` | कैप्चर की गई इमेज विश्लेषण में त्रुटि |
| `73901` | `É necessário implementar a interface AcessoBioListener` | `AcessoBioListener` इंटरफेस लागू नहीं किया गया |
| `73902` | `É necessário insirir um valor maior que 40 segundos no método: setTimeoutSession.` | `setTimeoutSession` का मान 40 सेकंड से अधिक होना चाहिए |
| `73903` | `Arquivo de configuração corrompido. Verifique o arquivo json e tente novamente.` | कॉन्फ़िगरेशन फ़ाइल दूषित — सत्यापित करें और पुनः प्रयास करें |
| `73904` | `Erro ao finalizar processo` | कैप्चर प्रक्रिया समाप्त करने में त्रुटि |
| `73905` | `Unable to open document camera` | दस्तावेज़ कैमरा नहीं खोला जा सका |
| `73906` | `Document type uninformed` | दस्तावेज़ प्रकार निर्दिष्ट नहीं किया गया |
| `74001` | `onSuccess: not implemented when using open:webAppToken:` | User Journey के लिए `onSuccess` callback लागू नहीं किया गया |
| `74100` | `Could not prepare SDK-S` | SDK घटक तैयार करने में विफल |
| `74101` | `No URL token was provided.` | journey के लिए कोई URL टोकन प्रदान नहीं किया गया |
| `74102` | `Environment type was not specified.` | Environment (`PROD`/`UAT`) कॉन्फ़िगर नहीं किया गया |
| `737120` | `Unable to initialize liveness` | लाइवनेस activity आरंभ नहीं हो सकी |
| `737220` | `Capture could not start` | कैप्चर प्रक्रिया शुरू नहीं हो सकी |
| `737320` | `Transaction could not start` | लेनदेन शुरू नहीं हो सका |
| `737321` | `The Session was cancelled because of an unknown and unexpected error. This return value is a catch-all for errors experienced during normal usage of these APIs. Try again.` | सामान्य सत्र प्रदाता त्रुटि — पुनः प्रयास करें |

:::secondary[REST API एरर कोड]
ऊपर दिए गए कोड SDK callback एरर हैं। REST API एरर कोड (HTTP स्टेटस फैमिली) अलग से [API Reference > Error codes](/dual-api/developers/api-reference/error-codes) में दर्ज हैं।
:::