From 36ba00caf6c19154a194a336fb2edd849a303ef0 Mon Sep 17 00:00:00 2001 From: Ajitomi Daisuke Date: Mon, 14 Oct 2024 08:00:16 +0900 Subject: [PATCH] Remove BaseError. --- packages/common/src/errors.ts | 8 +------- packages/core/mod.ts | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/common/src/errors.ts b/packages/common/src/errors.ts index eb3271a59..e1516bad8 100644 --- a/packages/common/src/errors.ts +++ b/packages/common/src/errors.ts @@ -2,7 +2,7 @@ * The base error class of hpke-js. * @group Errors */ -export class BaseError extends Error { +export class HpkeError extends Error { public constructor(e: unknown) { let message: string; @@ -19,12 +19,6 @@ export class BaseError extends Error { } } -/** - * The base error class of hpke-js. - * @group Errors - */ -export class HpkeError extends BaseError {} - /** * Invalid parameter. * @group Errors diff --git a/packages/core/mod.ts b/packages/core/mod.ts index 96e9c4ab6..c78baefb8 100644 --- a/packages/core/mod.ts +++ b/packages/core/mod.ts @@ -18,7 +18,6 @@ export type { CipherSuiteSealResponse } from "./src/interfaces/responses.ts"; export { AeadId, - BaseError, DecapError, DeriveKeyPairError, DeserializeError,