Initial commit
This commit is contained in:
16
node_modules/web-push/src/web-push-error.js
generated
vendored
Normal file
16
node_modules/web-push/src/web-push-error.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
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;
|
||||
Reference in New Issue
Block a user