errorHandler() публичный статический Метод

public static errorHandler ( $method, $args, $exception, boolean $logError = true )
$method
$args
$exception
$logError boolean
Пример #1
0
 /**
  * @throws \Exception
  * @param  $method
  * @param  $args
  * @return mixed
  */
 public function __call($method, $args)
 {
     try {
         $r = $this->callResourceMethod($method, $args);
         return $r;
     } catch (\Exception $e) {
         return Db::errorHandler($method, $args, $e);
     }
 }