What is the purpose of "super.handle(...arguments)"?



I try to understand purpose of “super.handle(…arguments)”. If I use or don’t use super.handle, when exception is created, I got error view of adonis. What is the differencies?

When my project is at production, does “super.handle” show error view of adonis, and adonis’s codes on page?

I use end of error handle method that return response .status(error.status) .send(view.render('front.errors.error', {status: error.status})); It show my own error response for any other errors.


It’s a general programming question related to inheritance of classes. Read more about it here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/super