feat(plugins/pagerduty): add NotFoundError

Signed-off-by: Alec Jacobs <cajacobs5401@gmail.com>
This commit is contained in:
Alec Jacobs
2022-05-27 10:14:20 -07:00
parent 525641fc02
commit 845c7f8852
2 changed files with 7 additions and 1 deletions
+1
View File
@@ -34,6 +34,7 @@ import {
} from '@backstage/core-plugin-api';
export class UnauthorizedError extends Error {}
export class NotFoundError extends Error {}
export const pagerDutyApiRef = createApiRef<PagerDutyApi>({
id: 'plugin.pagerduty.api',
+6 -1
View File
@@ -14,5 +14,10 @@
* limitations under the License.
*/
export { PagerDutyClient, pagerDutyApiRef, UnauthorizedError } from './client';
export {
PagerDutyClient,
pagerDutyApiRef,
UnauthorizedError,
NotFoundError,
} from './client';
export type { PagerDutyApi } from './types';