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