lib/Service/GearmanWorkerService.php 1 location
|
@@ 79-86 (lines=8) @@
|
| 76 |
|
* @throws Exception |
| 77 |
|
* @throws NotFoundException |
| 78 |
|
*/ |
| 79 |
|
private function handleException($e) { |
| 80 |
|
$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during gearman worker service function processing']); |
| 81 |
|
if ($e instanceof NotFoundException) { |
| 82 |
|
throw new NotFoundException($e->getMessage()); |
| 83 |
|
} else { |
| 84 |
|
throw $e; |
| 85 |
|
} |
| 86 |
|
} |
| 87 |
|
|
| 88 |
|
} |
lib/Service/OcrService.php 1 location
|
@@ 412-419 (lines=8) @@
|
| 409 |
|
* @throws Exception |
| 410 |
|
* @throws NotFoundException |
| 411 |
|
*/ |
| 412 |
|
private function handleException($e) { |
| 413 |
|
$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during ocr service function processing']); |
| 414 |
|
if ($e instanceof NotFoundException) { |
| 415 |
|
throw new NotFoundException($e->getMessage()); |
| 416 |
|
} else { |
| 417 |
|
throw $e; |
| 418 |
|
} |
| 419 |
|
} |
| 420 |
|
} |