--- book/classes/error.class.php Mon Nov 22 03:16:41 2004 +++ patches.book/classes/error.class.php Mon Nov 22 02:53:00 2004 @@ -6,11 +6,14 @@ // one of these is built per-object, // letting the object tune its own // error level +define('Error_U_ERROR', E_ALL ^ (E_WARNING | E_USER_WARNING | E_NOTICE | E_USER_NOTICE)); +define('Error_U_WARNING', E_ALL ^ (E_NOTICE | E_USER_NOTICE)); +define('Error_U_NOTICE', E_ALL); class Error extends Exception { - const U_ERROR = E_ALL ^ (E_WARNING | E_USER_WARNING | E_NOTICE | E_USER_NOTICE); - const U_WARNING = E_ALL ^ (E_NOTICE | E_USER_NOTICE); - const U_NOTICE = E_ALL; + const U_ERROR = Error_U_ERROR; + const U_WARNING = Error_U_WARNING; + const U_NOTICE = Error_U_NOTICE; protected $_who; protected $_debug = true;