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
- CORS Error
getting the following error in my app after deploying it: Access to fetch at 'https://appwrite.mydomain.tld/account' from origin 'https://myapp.mydomain.tld' ha...
- Appwrite mariadb container suddenly usin...
I'm hosting an instance of appwrite since months and updated to 1.8.0 couple of weeks ago. Everything worked fine, but today I noticed that my server is lagging...
- AnyCodable not exposed in iOS SDK
I want to write some convenience functions for Teams.list() but the problem is, that I can't use the default <[String : AnyCodable]> as a return type for my con...