Show Error if delete of a row in SupaBase fails? (e.g. due foreign key constraint)

When I try to delete a employee group, it fails because it is referenced in an employee record.

dart_sdk.js:5402 Uncaught (in promise) Error: PostgrestException(message: update or delete on table "mitarbeiter_gruppe" violates foreign key constraint

That's a good thing and was expected.

But: Is there a way in FlutterFlow to display a corresponding message to the user.

Otherwise he clicks the button and just wonders why nothing happens.

In general: Can you react to backend exceptions in FlutterFlow?

3
2 replies