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

PostgrestError

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]