Skip to content

Commit 0606114

Browse files
committed
feat(handler): remove error throw
1 parent 026240c commit 0606114

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@athenna/common",
3-
"version": "5.30.0",
3+
"version": "5.31.0",
44
"description": "The Athenna common helpers to use in any Node.js ESM project.",
55
"license": "MIT",
66
"author": "João Lenon <lenon@athenna.io>",

src/handlers/ExceptionHandler.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/**
2+
* @athenna/common
3+
*
4+
* (c) João Lenon <lenon@athenna.io>
5+
*
6+
* For the full copyright and license information, please view the LICENSE
7+
* file that was distributed with this source code.
8+
*/
9+
110
import { Macroable } from '#src/helpers/Macroable'
211

312
export type ExceptionHandlerContext = {
@@ -6,6 +15,9 @@ export type ExceptionHandlerContext = {
615

716
export class ExceptionHandler extends Macroable {
817
public async handle(_: ExceptionHandlerContext): Promise<void> {
9-
throw new Error('Not implemented')
18+
/**
19+
* This method is meant to be overridden by the user
20+
* using the `macro()` method
21+
*/
1022
}
1123
}

0 commit comments

Comments
 (0)