UNPKG
postgrejs
Version:
latest (2.22.9)
2.22.9
2.22.7
2.22.6
2.22.5
2.22.4
2.22.3
2.22.2
2.22.1
2.22.0
2.21.1
2.21.0
2.20.0
2.19.0
2.18.1
2.18.0
2.17.1
2.17.0
2.16.0
2.15.4
2.15.2
2.15.1
2.15.0
2.12.0
Professional PostgreSQL client NodeJS
postgrejs.panates.com
panates/postgrejs
postgrejs
/
esm
/
protocol
/
database-error.js
14 lines
(13 loc)
•
349 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export
class
DatabaseError
extends
Error
{
constructor
(
msg
) {
super
(msg.
message
);
Object
.
assign
(
this
, { ...msg,
line
:
undefined
,
file
:
undefined
,
routine
:
undefined
, });
if
(msg.
position
)
this
.
position
=
parseInt
(msg.
position
,
10
) ||
undefined
; } }