MCPcopy
hub / github.com/brianc/node-postgres / DatabaseError

Class DatabaseError

packages/pg-protocol/src/messages.ts:97–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97export class DatabaseError extends Error implements NoticeOrError {
98 public severity: string | undefined
99 public code: string | undefined
100 public detail: string | undefined
101 public hint: string | undefined
102 public position: string | undefined
103 public internalPosition: string | undefined
104 public internalQuery: string | undefined
105 public where: string | undefined
106 public schema: string | undefined
107 public table: string | undefined
108 public column: string | undefined
109 public dataType: string | undefined
110 public constraint: string | undefined
111 public file: string | undefined
112 public line: string | undefined
113 public routine: string | undefined
114 constructor(
115 message: string,
116 public readonly length: number,
117 public readonly name: MessageName
118 ) {
119 super(message)
120 }
121}
122
123export class CopyDataMessage {
124 public readonly name = 'copyData'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected