コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
ファイル: RollBar.php プロジェクト: WebChemistry/RollBar
 public function error($errno, $errstr, $errfile, $errline)
 {
     return \Rollbar::report_php_error($errno, $errstr, $errfile, $errline);
 }
コード例 #3
0
 /**
  * @param \ErrorException $exception
  */
 protected function handleFatalError($exception)
 {
     \Rollbar::report_php_error($exception->getCode(), $exception->getMessage(), $exception->getFile(), $exception->getLine());
     parent::handleException($exception);
 }
コード例 #4
0
ファイル: RollbarTest.php プロジェクト: oadam/rollbar-php
 public function testErrorBeforeInit()
 {
     $uuid = Rollbar::report_php_error(E_ERROR, "Runtime error", "the_file.php", 1);
     $this->assertFalse($uuid);
 }
コード例 #5
0
 /**
  * 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);
 }
コード例 #6
0
 protected function handleError($event)
 {
     Rollbar::report_php_error($event->code, $event->message, $event->file, $event->line);
     parent::handleError($event);
 }