<? /*############################################# exception class to print and log errors version 0.1 #############################################*/ class Exception extends Logger { /* constructor expects: STRING filename, STRING rotation, STRING mode returns: VOID */ function Exception($path,$filename,$rotation,$mode) { $this->mode = $mode; $this->Logger($path,$filename,$rotation); }
/* method to print an log errors expects: STRING message, STRING type returns: VOID */ function throwError($message,$type) { if($this->mode == "printout") print $this->_buildMessage($message); $this->_log($message, $type); } } ?>
|