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
- Github App "Failed to retrieve access to...
When trying to connect the Github App on 1.8.1 I recieve this error: ```[Error] Method: GET [Error] URL: /v1/vcs/github/callback [Error] Type: Exception [Error]...
- Update from 1.8 to 1.8.1 failing
I have spent the past 2 hours trying to figure this out but I really dont know what to do. 1.8. was a fresh install because the upgrade from 1.7.4 was a total m...
- Realtime not working for some tables
Hi, I've got an issue where I can setup a realtime connection to listen to some tables, but some not all. I have two tables `history` and `users`. Both can be ...