Module

x/postgres/client/error.ts>PostgresError

PostgreSQL driver for Deno
Extremely Popular
Latest
class PostgresError
extends Error
import { PostgresError } from "https://dotland.deno.dev/x/postgres@v0.19.3/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