Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Is it a good or bad idea to use Lang class in exception messages?
  • I am planning to do this, because I would like to pass the exception message to the Messages class in some cases.
  • Thomas EdwardsThomas Edwards
    Accepted Answer
    What kind of exception? I think HttpNotFoundException should be fine.
  • 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.
  • HarroHarro
    Accepted Answer
    shouldn't be a problem, providing the exception isn't thrown because of a Lang issue...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion