errorHandler() public static method

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