Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/postgres/client/error.ts>PostgresError

PostgreSQL driver for Deno
Go to Latest
class PostgresError
extends Error
import { PostgresError } from "https://deno.land/x/postgres@v0.19.0/client/error.ts";

A Postgres database error

Constructors

new
PostgresError(fields: Notice, query?: string)

Create a new PostgresError

Properties

fields: Notice

The fields of the notice message

query: string | undefined

The query that caused the error