Reinitialized commit. Update and actors overview with some filters.
This commit is contained in:
16
src/errors.js
Executable file
16
src/errors.js
Executable file
@@ -0,0 +1,16 @@
|
||||
export class HttpError extends Error {
|
||||
constructor(message, httpCode, friendlyMessage, data) {
|
||||
super(message);
|
||||
|
||||
this.name = 'HttpError';
|
||||
this.httpCode = httpCode;
|
||||
|
||||
if (friendlyMessage) {
|
||||
this.friendlyMessage = friendlyMessage;
|
||||
}
|
||||
|
||||
if (data) {
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user