Manage site errors using exceptions.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 2 Jul 2010 13:48:06 +0000 (15:48 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 2 Jul 2010 13:51:19 +0000 (15:51 +0200)
commit7f6d1063f7543f8e6c0e775dccdeff18626534cc
treee8aeb67f6d3703b61707e143e22858a53446ba3f
parent92d96cb7270caff156df7785b800a7a3084e8a16
Manage site errors using exceptions.

This has 3 main avantages:
 - Error may not be fatal (e.g. a SQL error must not be fatal during the
   execution of the unit tests)
 - We can have the backtrace
 - The same code handle all the kind of errors.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/platal.php
classes/plexception.php [new file with mode: 0644]
classes/xdb.php
include/test.inc.php
modules/core.php
templates/site_errors.tpl [moved from templates/assert_errors.tpl with 94% similarity]
templates/sql_errors.tpl [deleted file]