@rtorcato/supabase-common / getErrorCode
Function: getErrorCode()
getErrorCode(
err):string|undefined
Defined in: errors.ts:31
Pull the error code off any Supabase/PostgREST error (or SupabaseError),
or undefined if there isn't one. Accepts unknown so it drops straight into
a catch (err).
Parameters
err
unknown
Returns
string | undefined