Merge pull request #9871 from backstage/jhaals/remove-handleError

catalog-backend: Remove catalogProcessor.handleError
This commit is contained in:
Johan Haals
2022-03-01 14:33:11 +01:00
committed by GitHub
3 changed files with 5 additions and 19 deletions
-5
View File
@@ -308,11 +308,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>;
};
/**