/** * Formats a PHP error and dispatches it to the * reporter. * @param integer $severity PHP error code. * @param string $message Text of error. * @param string $file File error occoured in. * @param integer $line Line number of error. * @access public */ function error($severity, $message, $file, $line) { $failure_url = $this->getUrl(); if (strpos($message, $failure_url) === false) { // make sure URL is reported in the message: $message = sprintf("%s (URL: %s)", $message, $failure_url); } parent::error($severity, $message, $file, $line); }