Extended Core: Exceptions

Aus CodeCoupler Wiki
Version vom 21. August 2012, 11:01 Uhr von Tm (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Every CodeIgniter function will use "show_error()" to cancel execution and send a formatted error message back to the browser. Now you can define to throw an e…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

Every CodeIgniter function will use "show_error()" to cancel execution and send a formatted error message back to the browser. Now you can define to throw an exception instead. To enable this feature use the following code:

$error =& load_class('Exceptions', 'core');
$error->enable_exceptions();

If you want to disable it again do this:

$error->enable_exceptions();