r/PHP • • Sep 08 '20

Article Performance impact of PHP Exceptions

https://php.watch/articles/php-exception-performance
34 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/colshrapnel Sep 09 '20

I make it there are two approaches. One is when your backend performs the user-friendly validation and another when everything is handled by the frontend. In the latter case indeed to throw a generic 400 Bad request would be enough.