lib/Service/OcrService.php 1 location
|
@@ 535-542 (lines=8) @@
|
| 532 |
|
* @throws Exception |
| 533 |
|
* @throws NotFoundException |
| 534 |
|
*/ |
| 535 |
|
private function handleException($e) { |
| 536 |
|
$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during ocr service function processing']); |
| 537 |
|
if ($e instanceof NotFoundException) { |
| 538 |
|
throw new NotFoundException($e->getMessage()); |
| 539 |
|
} else { |
| 540 |
|
throw $e; |
| 541 |
|
} |
| 542 |
|
} |
| 543 |
|
} |
| 544 |
|
|
lib/Service/QueueService.php 1 location
|
@@ 151-158 (lines=8) @@
|
| 148 |
|
* @throws Exception |
| 149 |
|
* @throws NotFoundException |
| 150 |
|
*/ |
| 151 |
|
private function handleException($e) { |
| 152 |
|
$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during message queue processing']); |
| 153 |
|
if ($e instanceof NotFoundException) { |
| 154 |
|
throw new NotFoundException($e->getMessage()); |
| 155 |
|
} else { |
| 156 |
|
throw $e; |
| 157 |
|
} |
| 158 |
|
} |
| 159 |
|
|
| 160 |
|
} |