backend-app-api: export BackendStartupError

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-11-18 20:12:21 +01:00
parent c38c640001
commit 3f4b717b3f
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -4,6 +4,7 @@
```ts
import { BackendFeature } from '@backstage/backend-plugin-api';
import { CustomErrorBase } from '@backstage/errors';
import { ServiceFactory } from '@backstage/backend-plugin-api';
// @public (undocumented)
@@ -22,6 +23,15 @@ export interface Backend {
stop(): Promise<void>;
}
// @public
export class BackendStartupError extends CustomErrorBase {
constructor(startupResult: BackendStartupResult);
// (undocumented)
name: 'BackendStartupError';
// (undocumented)
get result(): BackendStartupResult;
}
// @public
export interface BackendStartupResult {
beginAt: Date;
@@ -22,3 +22,4 @@ export type {
ModuleStartupResult,
} from './types';
export { createSpecializedBackend } from './createSpecializedBackend';
export { BackendStartupError } from './BackendStartupError';