package expo.modules.contacts import android.net.Uri import expo.modules.kotlin.exception.CodedException class ContactPickingInProgressException : CodedException("Different contact picking in progress. Await other contact picking first.") class ContactManipulationInProgressException : CodedException("Different contact manipulation in progress. Await other contact manipulation first.") class MissingPermissionException(permission: String) : CodedException("Missing $permission permission") class RetrieveIdException : CodedException("Couldn't get the contact id") class AddContactException : CodedException("Given contact couldn't be added") class ContactNotFoundException : CodedException("Couldn't find contact") class ContactUpdateException : CodedException("Given contact couldn't be updated") class LookupKeyNotFoundException : CodedException("Couldn't find lookup key for contact") class RemoteImageUriException(uri: String) : CodedException("Only file:// URIs are supported for contact images. Provided URI: '$uri'. Download the image first using File.downloadFileAsync from expo-file-system and provide a local file URI.") class ContactsCheckFailedException : CodedException("Couldn't check if there are any contacts") class ImageDecodingException(uri: Uri) : CodedException("Couldn't decode the contact image at '$uri'. Make sure the URI points to a readable image file.")