lib/Service/GearmanWorkerService.php 1 location
|
@@ 71-78 (lines=8) @@
|
| 68 |
|
* @throws Exception |
| 69 |
|
* @throws NotFoundException |
| 70 |
|
*/ |
| 71 |
|
private function handleException($e) { |
| 72 |
|
$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during gearman worker service function processing']); |
| 73 |
|
if ($e instanceof NotFoundException) { |
| 74 |
|
throw new NotFoundException($e->getMessage()); |
| 75 |
|
} else { |
| 76 |
|
throw $e; |
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
} |
lib/Service/OcrService.php 1 location
|
@@ 390-397 (lines=8) @@
|
| 387 |
|
* @throws Exception |
| 388 |
|
* @throws NotFoundException |
| 389 |
|
*/ |
| 390 |
|
private function handleException($e) { |
| 391 |
|
$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during ocr service function processing']); |
| 392 |
|
if ($e instanceof NotFoundException) { |
| 393 |
|
throw new NotFoundException($e->getMessage()); |
| 394 |
|
} else { |
| 395 |
|
throw $e; |
| 396 |
|
} |
| 397 |
|
} |
| 398 |
|
} |