1 | import BaseError, { CommonErrorProperties, ErrorOptions } from './base-error';
|
2 | export interface DatabaseErrorParent extends Error, Pick<CommonErrorProperties, 'sql'> {
|
3 |
|
4 | readonly parameters?: object;
|
5 | }
|
6 | export interface DatabaseErrorSubclassOptions extends ErrorOptions {
|
7 | parent?: DatabaseErrorParent;
|
8 | message?: string;
|
9 | }
|
10 |
|
11 |
|
12 |
|
13 | declare class DatabaseError extends BaseError implements DatabaseErrorParent, CommonErrorProperties {
|
14 | parent: Error;
|
15 | original: Error;
|
16 | sql: string;
|
17 | parameters: object;
|
18 | |
19 |
|
20 |
|
21 |
|
22 | constructor(parent: DatabaseErrorParent, options?: ErrorOptions);
|
23 | }
|
24 | export default DatabaseError;
|