@alexys-laurent

Learning initiated
2
Lessons started
Knowledge gained
1
Lesson completed
Total learning time
14m 27s
Spent learning
Community impact
1
Comments & forum posts

Discussions

Discussions @alexys-laurent has started

Is there any point in putting try/catch statements in each method of a controller?

@alexys-laurent
@alexys-laurent

I'm using Adonis JS as the API for my application. For each method in my controllers, I add try/catch statements to handle errors and return a response to my front-end in case one occurs. async createDiscussion({ request, auth, response }:...

Showing 1 to 1 of 1 results