You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
299 B
9 lines
299 B
4 months ago
|
export var throwServerError = function (response, result, message) {
|
||
|
var error = new Error(message);
|
||
|
error.name = "ServerError";
|
||
|
error.response = response;
|
||
|
error.statusCode = response.status;
|
||
|
error.result = result;
|
||
|
throw error;
|
||
|
};
|
||
|
//# sourceMappingURL=throwServerError.js.map
|