SAP-BTP-Spielwiese/app1/node_modules/@sap/xssec/lib/errors.js
Markus Rettig 775ac7b58c completed step 3 from the tutorial
you must login with an BTP account in order to see the app
2024-02-08 16:13:36 +01:00

16 lines
No EOL
434 B
JavaScript

'use strict';
class ServerRequestError extends Error {
constructor (message, code, description) {
super(message);
this.statusCode = code;
this.description = description;
this.name = this.constructor.name;
// capturing the stack trace keeps the reference to your error class
Error.captureStackTrace(this, this.constructor);
}
}
module.exports.ServerRequestError = ServerRequestError;