mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
16 lines
302 B
JavaScript
16 lines
302 B
JavaScript
export class HomeServerError extends Error {
|
|
constructor(method, url, body) {
|
|
super(`${body.error} on ${method} ${url}`);
|
|
this.errcode = body.errcode;
|
|
}
|
|
}
|
|
|
|
export class StorageError extends Error {
|
|
}
|
|
|
|
export class RequestAbortError extends Error {
|
|
}
|
|
|
|
export class NetworkError extends Error {
|
|
}
|