Mercurial
comparison benchmark/bun-http-framework-benchmark/dev/adonis/app/Exceptions/Handler.ts @ 183:a8976a008a9d
[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 21:19:08 -0800 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 179:8d17f6e6e290 | 183:a8976a008a9d |
|---|---|
| 1 /* | |
| 2 |-------------------------------------------------------------------------- | |
| 3 | Http Exception Handler | |
| 4 |-------------------------------------------------------------------------- | |
| 5 | | |
| 6 | AdonisJs will forward all exceptions occurred during an HTTP request to | |
| 7 | the following class. You can learn more about exception handling by | |
| 8 | reading docs. | |
| 9 | | |
| 10 | The exception handler extends a base `HttpExceptionHandler` which is not | |
| 11 | mandatory, however it can do lot of heavy lifting to handle the errors | |
| 12 | properly. | |
| 13 | | |
| 14 */ | |
| 15 | |
| 16 import Logger from '@ioc:Adonis/Core/Logger' | |
| 17 import HttpExceptionHandler from '@ioc:Adonis/Core/HttpExceptionHandler' | |
| 18 | |
| 19 export default class ExceptionHandler extends HttpExceptionHandler { | |
| 20 constructor() { | |
| 21 super(Logger) | |
| 22 } | |
| 23 } |