| @@ 350-357 (lines=8) @@ | ||
| 347 | * @throws Exception |
|
| 348 | * @throws NotFoundException |
|
| 349 | */ |
|
| 350 | private function handleException($e) { |
|
| 351 | $this->logger->logException ( $e, [ |
|
| 352 | 'app' => 'ocr', |
|
| 353 | 'message' => 'Exception during file service function processing' |
|
| 354 | ] ); |
|
| 355 | if ($e instanceof NotFoundException) { |
|
| 356 | throw new NotFoundException ( $e->getMessage () ); |
|
| 357 | } else { |
|
| 358 | throw $e; |
|
| 359 | } |
|
| 360 | } |
|
| @@ 112-122 (lines=11) @@ | ||
| 109 | * @throws Exception |
|
| 110 | * @throws NotFoundException |
|
| 111 | */ |
|
| 112 | private function handleException($e) { |
|
| 113 | $this->logger->logException ( $e, [ |
|
| 114 | 'app' => 'ocr', |
|
| 115 | 'message' => 'Exception during status service function processing' |
|
| 116 | ] ); |
|
| 117 | if ($e instanceof NotFoundException) { |
|
| 118 | throw new NotFoundException ( $e->getMessage () ); |
|
| 119 | } else { |
|
| 120 | throw $e; |
|
| 121 | } |
|
| 122 | } |
|
| 123 | } |
|
| @@ 332-339 (lines=8) @@ | ||
| 329 | * @throws Exception |
|
| 330 | * @throws NotFoundException |
|
| 331 | */ |
|
| 332 | private function handleException($e) { |
|
| 333 | $this->logger->logException ( $e, [ |
|
| 334 | 'app' => 'ocr', |
|
| 335 | 'message' => 'Exception during job service function processing' |
|
| 336 | ] ); |
|
| 337 | if ($e instanceof NotFoundException) { |
|
| 338 | throw new NotFoundException ( $e->getMessage () ); |
|
| 339 | } else { |
|
| 340 | throw $e; |
|
| 341 | } |
|
| 342 | } |
|
| @@ 132-142 (lines=11) @@ | ||
| 129 | * @throws Exception |
|
| 130 | * @throws NotFoundException |
|
| 131 | */ |
|
| 132 | private function handleException($e) { |
|
| 133 | $this->logger->logException ( $e, [ |
|
| 134 | 'app' => 'ocr', |
|
| 135 | 'message' => 'Exception during message queue processing' |
|
| 136 | ] ); |
|
| 137 | if ($e instanceof NotFoundException) { |
|
| 138 | throw new NotFoundException ( $e->getMessage () ); |
|
| 139 | } else { |
|
| 140 | throw $e; |
|
| 141 | } |
|
| 142 | } |
|
| 143 | } |
|