From 0606114bf67218fef1e4de9d973c4db06e1962c2 Mon Sep 17 00:00:00 2001 From: jlenon7 Date: Sun, 15 Mar 2026 14:46:11 -0300 Subject: [PATCH] feat(handler): remove error throw --- package-lock.json | 4 ++-- package.json | 2 +- src/handlers/ExceptionHandler.ts | 14 +++++++++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0bb0bd4..d6c7a45 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@athenna/common", - "version": "5.30.0", + "version": "5.31.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@athenna/common", - "version": "5.30.0", + "version": "5.31.0", "license": "MIT", "dependencies": { "@fastify/formbody": "^8.0.2", diff --git a/package.json b/package.json index 3f64a08..27724cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@athenna/common", - "version": "5.30.0", + "version": "5.31.0", "description": "The Athenna common helpers to use in any Node.js ESM project.", "license": "MIT", "author": "João Lenon ", diff --git a/src/handlers/ExceptionHandler.ts b/src/handlers/ExceptionHandler.ts index 1f69919..34f3b80 100644 --- a/src/handlers/ExceptionHandler.ts +++ b/src/handlers/ExceptionHandler.ts @@ -1,3 +1,12 @@ +/** + * @athenna/common + * + * (c) João Lenon + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + import { Macroable } from '#src/helpers/Macroable' export type ExceptionHandlerContext = { @@ -6,6 +15,9 @@ export type ExceptionHandlerContext = { export class ExceptionHandler extends Macroable { public async handle(_: ExceptionHandlerContext): Promise { - throw new Error('Not implemented') + /** + * This method is meant to be overridden by the user + * using the `macro()` method + */ } }