Joined November 2012
·
Posted to
Symfony2: Catch exception in the controller and show flash message
over 1 year
ago
This is actually bad code, You should never (almost) catch \Exception, everything has it's own exception, catch them. and handle just those ones.
You should log all the exceptions that you catch as well, to know what went wrong.
Achievements
129 Karma
6,855 Total ProTip Views

Nephila Komaci 3
Have at least three original repos where PHP is the dominant language

Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos

Epidexipteryx
Have at least one original repo where C++ is the dominant language

Komodo Dragon
Have at least one original repo where Java is the dominant language

Nephila Komaci
Have at least one original repos where PHP is the dominant language

Charity
Fork and commit to someone's open source project in need
@dpashkevich I think realtime communication is much better than emails. And having all in the same place you can have history of everything. Bots are popular because help you, you can ask a bot to find something for you, to deploy stuff for you or he can tell you when something is not going how it should.