extends Error
This commit is contained in:
parent
522363c419
commit
60021a70dc
@ -1,7 +1,8 @@
|
|||||||
var pgErrorCodes = require('./error_codes');
|
var pgErrorCodes = require('./error_codes');
|
||||||
|
|
||||||
class ErrorHandler {
|
class ErrorHandler extends Error {
|
||||||
constructor(err) {
|
constructor(err) {
|
||||||
|
super();
|
||||||
this.err = err;
|
this.err = err;
|
||||||
|
|
||||||
if (this.isTimeoutError()) {
|
if (this.isTimeoutError()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user