function triggerError($errno, $errstr, $errfile, $errline) { $stackTrace = debug_backtrace(); array_shift($stackTrace); $exception = new Recipe_Exception_Generic($errstr, $errno); $exception->setFile($errfile)->setLine($errline)->setTrace($stackTrace); throw $exception; return; }