A class to handle errors? I can make things very complicated... :P

Signed-off-by: emanuele <emanuele45@gmail.com>
Rename the class to error_context (error_handler is the function for php errors handling)

Signed-off-by: Norv <a.w.norv@gmail.com>
Add a static context() method to instantiate our contexts, per id.

Signed-off-by: Norv <a.w.norv@gmail.com>
Fix severity, initialize defaults.

Signed-off-by: Norv <a.w.norv@gmail.com>
Class constants for severity levels.

Signed-off-by: Norv <a.w.norv@gmail.com>
Quick cleanup, error_context no longer needs sent as parameter.

Signed-off-by: Norv <a.w.norv@gmail.com>
Poll errors moved to class

Signed-off-by: emanuele <emanuele45@gmail.com>
A unique template to present errors

Signed-off-by: emanuele <emanuele45@gmail.com>
Some change to the error template. Added a meaning to the default_error in error_context. Default error severity in Post is now 1. Fixed the error severity/type conversion from 0/1 to minor/serious

Signed-off-by: emanuele <emanuele45@gmail.com>
Improved hasError to handle more than one error at a time

Signed-off-by: emanuele <emanuele45@gmail.com>
Errors in create_control_verification handled through the class error

Signed-off-by: emanuele <emanuele45@gmail.com>
report to moderator to error class

Signed-off-by: emanuele <emanuele45@gmail.com>
CurveClassic...

Signed-off-by: emanuele <emanuele45@gmail.com>
An error missed in Post.php and a couple of wrong indexes in Emailuser.template

Signed-off-by: emanuele <emanuele45@gmail.com>
Fixed a wrong variable in report to moderator error handling

Signed-off-by: emanuele <emanuele45@gmail.com>
A javascript object to deal with "live" error handling with the new template

Signed-off-by: emanuele <emanuele45@gmail.com>
Some leftovers and a bit of optimization (thanks Spuds for the suggestions)

Signed-off-by: emanuele <emanuele45@gmail.com>
Another small class for processing of attachments errors

Signed-off-by: emanuele <emanuele45@gmail.com>
A semicolon missing

Signed-off-by: emanuele <emanuele45@gmail.com>
Proper indentation

Signed-off-by: emanuele <emanuele45@gmail.com>