Skip to content

Commit

Permalink
Remove BaseError.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajiaji committed Oct 13, 2024
1 parent 10fb299 commit 36ba00c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions packages/common/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion packages/core/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export type { CipherSuiteSealResponse } from "./src/interfaces/responses.ts";

export {
AeadId,
BaseError,
DecapError,
DeriveKeyPairError,
DeserializeError,
Expand Down

0 comments on commit 36ba00c

Please sign in to comment.