Add SSE Session class

This commit is contained in:
2026-07-19 19:24:07 +00:00
parent 2189e9c4f5
commit 65be9c7dee
6 changed files with 1325 additions and 0 deletions

View File

@@ -1,3 +1,23 @@
/**
* Error thrown when a response body is null
*/
export class ResponseBodyNullError extends Error {
constructor() {
super('Response body is null');
this.name = 'ResponseBodyNullError';
}
}
/**
* Error thrown when an HTTP error occurs
*/
export class HTTPError extends Error {
constructor(status: number, message: string) {
super(`HTTP error! Status: ${status} - ${message}`);
this.name = 'HTTPError';
}
}
/**
* Error thrown when the maximum number of retries is hit in an exponential backoff
*/