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