UNPKG

296 BJavaScriptView Raw
1class UpwardServerError extends Error {
2 get name() {
3 return 'UpwardServerError';
4 }
5 constructor(originalError, message) {
6 super(originalError);
7
8 if (message) {
9 this.message += ' -- ' + message;
10 }
11 }
12}
13
14module.exports = UpwardServerError;