| 145 | } |
| 146 | |
| 147 | export class DatabaseError extends Error implements NoticeOrError { |
| 148 | public severity: string | undefined |
| 149 | public code: string | undefined |
| 150 | public detail: string | undefined |
| 151 | public hint: string | undefined |
| 152 | public position: string | undefined |
| 153 | public internalPosition: string | undefined |
| 154 | public internalQuery: string | undefined |
| 155 | public where: string | undefined |
| 156 | public schema: string | undefined |
| 157 | public table: string | undefined |
| 158 | public column: string | undefined |
| 159 | public dataType: string | undefined |
| 160 | public constraint: string | undefined |
| 161 | public file: string | undefined |
| 162 | public line: string | undefined |
| 163 | public routine: string | undefined |
| 164 | constructor( |
| 165 | message: string, |
| 166 | public readonly length: number, |
| 167 | public readonly name: MessageName, |
| 168 | ) { |
| 169 | super(message) |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | export class CopyDataMessage implements BackendMessage { |
| 174 | public readonly name = 'copyData' |
nothing calls this directly
no outgoing calls
no test coverage detected