> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/sdk-mobile/ios-sdk/manejo-de-errores-genericos.md).

# Generic error handling

Launching the SDK always returns a result. The result may be negative and contain an error.

The iOS SDK has generic errors that provide feedback to the integrator about why the process stopped.

#### Common - Basic

General states that do not fall into a specific functional category.

* `.NO_ERROR`: Default state; indicates that the operation completed without issues.
* `.UNKNOWN_ERROR`: An error occurred that has not been specifically identified or categorized.
* `.OTHER(String)`: Generic error for unhandled cases. Includes a custom message using a `String`.

#### Common - Requirements

Errors related to data availability, process lifecycle, or connectivity.

* `.NO_DATA_ERROR`: The process requires a configuration value that was not provided correctly or is null.
* `.OPERATION_NOT_CREATED`: The operation could not be initialized correctly.
* `.NETWORK_CONNECTION`: Communication error; the device has no internet access or the server is not responding.

#### Common - Permissions

These occur when the user or operating system denies access to hardware or files.

* `CAMERA_PERMISSION_DENIED`: Access to the device camera was blocked.
* `MIC_PERMISSION_DENIED`: Access to the microphone was blocked.
* `LOCATION_PERMISSION_DENIED`: Location services (GPS) are not authorized.
* `STORAGE_PERMISSION_DENIED`: Read/write permission for local storage was denied.

#### Common - User Interaction

Errors resulting from user behavior or session restrictions.

* `CANCEL_BY_USER`: The process was explicitly canceled by the user.
* `SDK_TIMEOUT`: The capture process exceeded the configured maximum wait time.

#### Common - License Errors

Validation errors related to the license key or SDK components.

* `.LICENSE_CHECKER_ERROR(String)`: General error during license validation with the server. The `String` parameter provides more explicit details.
* `.MISSING_COMPONENT_LICENSE_DATA`: The component being launched requires data that has not been configured correctly in the license.
* `.COMPONENT_LICENSE_ERROR`: The component you are trying to use is not enabled in the license.
* `.EMPTY_LICENSE`: The license field is empty.

**In addition to the generic errors, each module may contain specific errors, which are detailed on the respective documentation pages.**
