catchPostgrestError static method
void
catchPostgrestError(
- PostgrestResponse response
Implementation
static void catchPostgrestError(PostgrestResponse response) {
if (response.error != null) {
print('Data: ${response.data}');
print('Status: ${response.status}');
print('Error: ${response.error!.message}');
// ignore: only_throw_errors
throw response.error!.message;
}
}