Exemple #1
0
 public function exception()
 {
     if ($this->fails()) {
         $exception = $this->policy->getDefaultExceptionClass();
         throw new $exception($this->policy->getError());
     }
 }