catalog-backend: Remove catalogProcessor.handleError

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-03-01 11:28:59 +01:00
parent f587dcc5bf
commit c85292b768
3 changed files with 5 additions and 19 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-backend': minor
---
**Breaking**: Removed optional `handleError()` from `CatalogProcessor`. This optional method is never called by the catalog processing engine and can therefore be removed.
-5
View File
@@ -300,11 +300,6 @@ export type CatalogProcessor = {
emit: CatalogProcessorEmit,
cache: CatalogProcessorCache,
): Promise<Entity>;
handleError?(
error: Error,
location: LocationSpec,
emit: CatalogProcessorEmit,
): Promise<void>;
};
// @public
@@ -116,20 +116,6 @@ export type CatalogProcessor = {
emit: CatalogProcessorEmit,
cache: CatalogProcessorCache,
): Promise<Entity>;
/**
* Handles an emitted error.
*
* @param error - The error
* @param location - The location where the error occurred
* @param emit - A sink for items resulting from this handling
* @returns Nothing
*/
handleError?(
error: Error,
location: LocationSpec,
emit: CatalogProcessorEmit,
): Promise<void>;
};
/**