web-push
Version:
Web Push library for Node.js
17 lines (12 loc) • 388 B
JavaScript
;
function WebPushError(message, statusCode, headers, body, endpoint) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.statusCode = statusCode;
this.headers = headers;
this.body = body;
this.endpoint = endpoint;
}
require('util').inherits(WebPushError, Error);
module.exports = WebPushError;