Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PostgrestError

import { PostgrestError } from "https://esm.sh/@supabase/supabase-js@2.89.0/dist/index.d.mts";
class PostgrestError extends Error {
constructor(context: {
message: string;
details: string;
hint: string;
code: string;
}
);
code: string;
details: string;
hint: string;
}

§Extends

§
Error
[src]

§Constructors

§
new PostgrestError(context: {
message: string;
details: string;
hint: string;
code: string;
}
)
[src]
@example
import PostgrestError from '@supabase/postgrest-js'

throw new PostgrestError({
  message: 'Row level security prevented the request',
  details: 'RLS denied the insert',
  hint: 'Check your policies',
  code: 'PGRST301',
})

§Properties

§
code: string
[src]
§
details: string
[src]
§
hint: string
[src]