Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
Is it a good or bad idea to use Lang class in exception messages?
sagikazarmark
January 2013
I am planning to do this, because I would like to pass the exception message to the Messages class in some cases.
Thomas Edwards
January 2013
Accepted Answer
What kind of exception? I think HttpNotFoundException should be fine.
sagikazarmark
January 2013
Mostly my own exceptions thrown by own packages, but could be any other which does not mean that the code is wrong, just means that the user is doing something wrong.
Harro
January 2013
Accepted Answer
shouldn't be a problem, providing the exception isn't thrown because of a Lang issue...
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,088
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
260
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
January 2013
sagikazarmark
January 2013
Thomas Edwards
January 2013