UNPKG
@kwaight/node-linux-pam
Version:
latest (0.15.0)
0.15.0
0.14.0
0.13.0
0.12.0
0.11.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
0.4.0
0.3.1
0.3.0
Asynchronous PAM authentication for NodeJS
github.com/kwaight/node-linux-pam
kwaight/node-linux-pam
@kwaight/node-linux-pam
/
pam-error.js
15 lines
(10 loc)
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class
PamError
extends
Error
{
constructor
(
message, code
) {
super
(message);
Object
.
setPrototypeOf
(
this
,
new
.
target
.
prototype
);
this
.
name
=
'PamError'
;
this
.
code
= code;
Error
.
captureStackTrace
(
this
,
PamError
); } }
module
.
exports
=
PamError
;