--- title: "Error Handling on Android" slug: "image-scan-sdk-ig-error-handling-android-5-1-0" updated: 2026-10-22T13:22:25Z published: 2026-10-22T13:22:25Z canonical: "docs.onespan.com/image-scan-sdk-ig-error-handling-android-5-1-0" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Error Handling on Android The Image Scanner SDK uses two decoding methods. Both methods throw `QRCodeScannerSDKException`. The failure reason is provided as an error code, and its values are defined in `QRCodeScannerSDKErrorCodes`. | Error code | Value | Meaning | | --- | --- | --- | | `INVALID_IMAGE` | -4505 | The image is `null` or could not be processed. | | `INVALID_CODE_TYPE` | -4507 | `codeType` is not `QR_CODE`, `CRONTO_CODE`, or both. | | `INVALID_IMAGE_FORMAT` | -4508 | The `ImageProxy` is neither `YUV_420_888` nor `RGBA_8888`. | | `DEVICE_ARCHITECTURE_UNSUPPORTED` | -4509 | The native library could not be loaded on this device's architecture | If no code is found in the image, no exception is thrown; `scannedImageData` is `null` instead. For more information about decoding methods and functions, see [Functions of the Image Scanner SDK](/mobile/docs/image-scan-sdk-ig-functions-of-the-sdk-5-1-0).