errors: added ServiceUnavailableError

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-05-24 15:44:08 +02:00
parent fdd9cc1544
commit c4e8fefd9f
7 changed files with 32 additions and 0 deletions
+3
View File
@@ -125,6 +125,9 @@ export function serializeError(
},
): SerializedError;
// @public
export class ServiceUnavailableError extends CustomErrorBase {}
// @public
export function stringifyError(error: unknown): string;
```
+7
View File
@@ -81,6 +81,13 @@ export class NotModifiedError extends CustomErrorBase {}
*/
export class NotImplementedError extends CustomErrorBase {}
/**
* The server is not ready to handle the request.
*
* @public
*/
export class ServiceUnavailableError extends CustomErrorBase {}
/**
* An error that forwards an underlying cause with additional context in the message.
*
+1
View File
@@ -25,6 +25,7 @@ export {
NotFoundError,
NotModifiedError,
NotImplementedError,
ServiceUnavailableError,
} from './common';
export { CustomErrorBase } from './CustomErrorBase';
export { ResponseError } from './ResponseError';