vector-im-hydrogen-web/src/matrix/error.js

13 lines
275 B
JavaScript
Raw Normal View History

2018-12-21 14:35:24 +01:00
export class HomeServerError extends Error {
2019-06-26 22:31:36 +02:00
constructor(method, url, body) {
super(`${body.error} on ${method} ${url}`);
this.errcode = body.errcode;
}
2019-02-04 23:31:35 +01:00
}
2019-02-10 21:25:29 +01:00
export class RequestAbortError extends Error {
2019-03-08 12:26:59 +01:00
}
2019-02-10 21:25:29 +01:00
2019-03-08 12:26:59 +01:00
export class NetworkError extends Error {
}