diff --git a/plugins/tech-insights-common/api-report.md b/plugins/tech-insights-common/api-report.md index 3c599870c5..db987546c3 100644 --- a/plugins/tech-insights-common/api-report.md +++ b/plugins/tech-insights-common/api-report.md @@ -4,7 +4,6 @@ ```ts import { Config } from '@backstage/config'; -import { CustomErrorBase } from '@backstage/errors'; import { DateTime } from 'luxon'; import { Logger as Logger_2 } from 'winston'; import { PluginEndpointDiscovery } from '@backstage/backend-common'; @@ -32,16 +31,8 @@ export type CheckResult = { }; // @public -export class CheckValidationError extends CustomErrorBase { - constructor({ - message, - cause, - errors, - }: { - message: string; - cause?: Error; - errors?: any; - }); +export class CheckValidationError extends Error { + constructor({ message, errors }: { message: string; errors?: any }); // (undocumented) errors?: any; } diff --git a/plugins/tech-insights-common/package.json b/plugins/tech-insights-common/package.json index 15ccc1a682..37d66a9379 100644 --- a/plugins/tech-insights-common/package.json +++ b/plugins/tech-insights-common/package.json @@ -31,7 +31,6 @@ }, "dependencies": { "@backstage/backend-common": "^0.9.0", - "@backstage/errors": "^0.1.2", "@backstage/config": "^0.1.8", "@types/luxon": "^2.0.5", "luxon": "^2.0.2", diff --git a/plugins/tech-insights-common/src/checks.ts b/plugins/tech-insights-common/src/checks.ts index 062a5baaaa..7b2c4c6b8f 100644 --- a/plugins/tech-insights-common/src/checks.ts +++ b/plugins/tech-insights-common/src/checks.ts @@ -15,7 +15,6 @@ */ import { TechInsightsStore } from './persistence'; import { CheckResponse, FactResponse } from './responses'; -import { CustomErrorBase } from '@backstage/errors'; /** * A factory wrapper to construct FactChecker implementations. @@ -192,19 +191,11 @@ export type CheckValidationResponse = { * * @public */ -export class CheckValidationError extends CustomErrorBase { +export class CheckValidationError extends Error { errors?: any; - constructor({ - message, - cause, - errors, - }: { - message: string; - cause?: Error; - errors?: any; - }) { - super(message, cause); + constructor({ message, errors }: { message: string; errors?: any }) { + super(message); this.errors = errors; } }