This application is not used any more and exists only for history. Post new tickets on the Github account.
Cette application n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Ticket #1040 (delayed enhancement)

Opened 4 years ago

Last modified 2 years ago

remove error code in messages ?

Reported by: laurentj Owned by:
Priority: lowest Milestone: Jelix 2.0.0
Component: jelix Version:
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

study if it is relevant to keep the error code in the message, since we don't use any more trigger_error to generate errors. We could give the error code directly to the constructor of jException.

pros:

  • it remove a preg_match in the constructor of jException

cons:

  • perhaps it is more difficult to find the line where the exception is thrown, when we have only the error code and the message. We should then have a details documentation of the error codes (ticket #173), and add a @throw tag on doc comments.

Change History

comment:1 Changed 2 years ago by laurentj

  • Status changed from new to delayed
Note: See TracTickets for help on using tickets.