Пример #1
0
 public function handleException($exception)
 {
     $error_id = $this->errorRepository->findOrCreate(['message' => $this->errorRepository->getMessageFromException($exception), 'code' => $this->errorRepository->getCodeFromException($exception)], ['message', 'code']);
     return $this->logRepository->updateError($error_id);
 }
Пример #2
0
 public function handleException($exception, $code)
 {
     $error_id = $this->errorRepository->findOrCreate(array('message' => $exception->getMessage(), 'code' => $code), array('message', 'code'));
     return $this->logRepository->updateError($error_id);
 }