User:Emanuele/hooktemplate test: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
No edit summary
Line 4: Line 4:
|purpose=To allow reformatting of the error message, prior to notification to user, or perhaps to log or process in an outside system (e.g. sending an email to administrators on certain types of error occurring).
|purpose=To allow reformatting of the error message, prior to notification to user, or perhaps to log or process in an outside system (e.g. sending an email to administrators on certain types of error occurring).
|accepts=1 function name.
|accepts=1 function name.
|sends={{parmdesc|
|sends={{parmdesc
|$message|d1=is the message text itself.
|$message|d1=is the message text itself.
|$error_type|d2=is the SMF category of an error, e.g. General (general), undefined variables/indexes (undefined_vars), user errors like forgotten passwords (user), database/query errors (database).
|$error_type|d2=is the SMF category of an error, e.g. General (general), undefined variables/indexes (undefined_vars), user errors like forgotten passwords (user), database/query errors (database).

Revision as of 09:46, 13 April 2011

Called from: Errors.php, just after the error itself has been logged but before it has been output to the user.

Purpose: To allow reformatting of the error message, prior to notification to user, or perhaps to log or process in an outside system (e.g. sending an email to administrators on certain types of error occurring).

Accepts:1 function name.

Sends:

  • $message is the message text itself.
  • $error_type is the SMF category of an error, e.g. General (general), undefined variables/indexes (undefined_vars), user errors like forgotten passwords (user), database/query errors (database).
  • $error_level is the PHP error level ident. See the PHP manual for the values this is.
  • $file is the filename this occurred in (full server path). $line is the line number of the error.



Advertisement: