/** * Handle errors * @param $code * @param $message * @param $file * @param $line */ public function handleError($code, $message, $file, $line) { if ($this->getRollbar()->enabled) { \Rollbar::report_php_error($code, $message, $file, $line); } parent::handleError($code, $message, $file, $line); }
public function error($errno, $errstr, $errfile, $errline) { return \Rollbar::report_php_error($errno, $errstr, $errfile, $errline); }
/** * @param \ErrorException $exception */ protected function handleFatalError($exception) { \Rollbar::report_php_error($exception->getCode(), $exception->getMessage(), $exception->getFile(), $exception->getLine()); parent::handleException($exception); }
public function testErrorBeforeInit() { $uuid = Rollbar::report_php_error(E_ERROR, "Runtime error", "the_file.php", 1); $this->assertFalse($uuid); }
/** * Handles & reports PHP execution errors such as warnings and notices. */ public function handleError($code, $message, $file, $line) { \Rollbar::report_php_error($code, $message, $file, $line); parent::handleError($code, $message, $file, $line); }
protected function handleError($event) { Rollbar::report_php_error($event->code, $event->message, $event->file, $event->line); parent::handleError($event); }