Mercurial
comparison benchmark/bun-http-framework-benchmark/dev/adonis/app/Exceptions/Handler.ts @ 186:8cf4ec5e2191 hg-web
Fixed merge conflict.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 22:38:59 -0800 |
| parents | a8976a008a9d |
| children |
comparison
equal
deleted
inserted
replaced
| 176:fed99fc04e12 | 186:8cf4ec5e2191 |
|---|---|
| 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 } |