| // +----------------------------------------------------------------------+ // // $Id$ // // Commonly needed functions searching directory trees // // // This class is based on ideas from Ulf Wendel // class PEAR_Error { var $classname = ''; var $error_message_prefix = ''; var $error_prepend = ''; var $error_append = ''; var $die_on_error = false; var $auto_print_error = false; var $level = 0; var $trigger_error = false; var $message = ''; /* * constructor, set the basics... */ function PEAR_Error ($message) { $this->message = $message; } /* * string getMessage (void) * Get the error message from an exception object. */ function getMessage () { return ($this->error_prepend . $this->error_message_prefix . $this->message . $this->error_append); } /* * string getType (void) * Get the name of the exception. */ function getType () { return ($this->classname); } }