1 class OCPPError
extends Error
{
2 constructor(code
, message
, details
) {
6 this.message
= message
;
7 this.details
= details
;
9 Object
.setPrototypeOf(this, OCPPError
.prototype); // for instanceof
11 Error
.captureStackTrace
? (Error
.captureStackTrace(this, this.constructor)) : (this.stack
= (new Error()).stack
);
15 module
.exports
= OCPPError
;