describePostgrestException function

String describePostgrestException(
  1. PostgrestException e
)

Formats the full state of a PostgrestException for diagnostic logging.

Used by both setup_screen._testConnection and schema_migrator._readVersion so the two paths emit identical log lines that are trivial to grep in adb logcat when debugging BYO Supabase connection failures on real hardware.

Implementation

String describePostgrestException(PostgrestException e) {
  return 'PostgrestException('
      'code=${e.code}, '
      'message=${e.message}, '
      'details=${e.details}, '
      'hint=${e.hint})';
}