kubo-rpc-client
Version:
A client library for the Kubo RPC API
27 lines • 714 B
JavaScript
export class TimeoutError extends Error {
constructor(message = 'Request timed out') {
super(message);
this.name = 'TimeoutError';
}
}
export class AbortError extends Error {
constructor(message = 'The operation was aborted.') {
super(message);
this.name = 'AbortError';
}
}
export class HTTPError extends Error {
response;
constructor(response) {
super(response.statusText);
this.name = 'HTTPError';
this.response = response;
}
}
export class InvalidMtimeError extends Error {
constructor(message = 'Invalid mtime') {
super(message);
this.name = 'InvalidMtimeError';
}
}
//# sourceMappingURL=errors.js.map