errors: added ServiceUnavailableError
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -125,6 +125,9 @@ export function serializeError(
|
||||
},
|
||||
): SerializedError;
|
||||
|
||||
// @public
|
||||
export class ServiceUnavailableError extends CustomErrorBase {}
|
||||
|
||||
// @public
|
||||
export function stringifyError(error: unknown): string;
|
||||
```
|
||||
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
@@ -25,6 +25,7 @@ export {
|
||||
NotFoundError,
|
||||
NotModifiedError,
|
||||
NotImplementedError,
|
||||
ServiceUnavailableError,
|
||||
} from './common';
|
||||
export { CustomErrorBase } from './CustomErrorBase';
|
||||
export { ResponseError } from './ResponseError';
|
||||
|
||||
Reference in New Issue
Block a user