Skip to content

Custom Exceptions problems #1271

Answered by popovicieduard
fnoquiq asked this question in Help
Discussion options

You must be logged in to vote

in App/Exceptions/Handler.ts

Instead of

return response.status(error.status).send({error: 'G HANDLER'})

use:

    return super.handle(error, ctx)

and don't forget to edit the handle method: public async handle(error, ctx: HttpContextContract)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@fnoquiq
Comment options

@fnoquiq
Comment options

Answer selected by fnoquiq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants