mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-11-02 01:24:34 +00:00
new error for HTTP responses without stack trace (#1044)
* new error for HTTP responses without stack trace * lint
This commit is contained in:
1 parent
f71f0ac69a
commit
4dbc7df93d
2 files changed
+12
-3
No files matched your search
+10
-1
@@ -17,8 +17,17 @@ class PlayFileNotFoundError extends NonFatalTaskError {
|
||||
}
|
||||
}
|
||||
|
||||
class HTTPResponseError extends Error {
|
||||
constructor(statusCode) {
|
||||
super('Unexpected HTTP Response');
|
||||
delete this.stack;
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
SpeechCredentialError,
|
||||
NonFatalTaskError,
|
||||
PlayFileNotFoundError
|
||||
PlayFileNotFoundError,
|
||||
HTTPResponseError
|
||||
};
|
||||
Reference in new issue
Block a user