how to change the message displayed on the frontend when appwrite exception occurs
- 0
- Android
- Flutter
- Apple
- Self Hosted
i want to change the message which comes on my forntend when it no internet is available right now it shows an appwrite exception but i want it to show "connect to the net" how to implement this??
For that you'll need to override the errors. Meaning check the error string and returned value in your code and display the error you like in the frontend for the end-user
it's probably best check the error type when it's available and return your own error message basedo n the type. For more info, see https://appwrite.io/docs/response-codes#errorTypes
Recommended threads
- Fulltext index creation fails due to Inn...
I'm running a self-hosted Appwrite 1.8.1 instance and encountering an issue when creating fulltext indexes on a collection. **The Problem:** Fulltext index cre...
- Function for long running task (other 60...
My function need long running other 60 seconds. But async mode return empty body. How to deal with that please ?
- OAuth2 Provider is disabled automaticall...
Hi everyone, I'm using self-host Appwrite 1.7.4. I can setup OAuth2 with Google successfully, however the provider is disabled automatically after one day witho...