extends Error

This commit is contained in:
Simon Martín 2018-03-28 10:56:06 +02:00
parent 522363c419
commit 60021a70dc

View File

@ -1,7 +1,8 @@
var pgErrorCodes = require('./error_codes');
class ErrorHandler {
class ErrorHandler extends Error {
constructor(err) {
super();
this.err = err;
if (this.isTimeoutError()) {