UNPKG
web-push
Version:
latest (4.0.0)
4.0.0
3.6.7
3.6.6
3.6.5
3.6.4
3.6.3
3.6.2
3.6.1
3.5.0
3.4.5
3.4.4
3.4.3
3.4.2
3.4.1
3.4.0
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.5
3.2.4
3.2.3
3.2.2
3.2.1
3.2.0
3.1.0
3.0.0
2.2.0
2.1.1
2.0.2
2.0.1
2.0.0
1.0.2
1.0.1
1.0.0
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Web Push library for Node.js
github.com/web-push-libs/web-push
web-push-libs/web-push
web-push
/
src
/
web-push-error.js
12 lines
(10 loc)
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
export
class
WebPushError
extends
Error
{
constructor
(message, statusCode, headers, body, endpoint) {
super
(message);
this
.name =
'WebPushError'
;
this
.statusCode = statusCode;
this
.headers = headers;
this
.body = body;
this
.endpoint = endpoint; } }