developer.jelix.org is not used any more and exists only for
history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.
Opened 11 years ago
Last modified 9 years ago
#1040 delayed enhancement
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.
Note: See
TracTickets for help on using
tickets.