public static errorHandler ( $method, $args, $exception, boolean $logError = true ) | ||
$method | ||
$args | ||
$exception | ||
$logError | boolean |
/** * @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); } }