| @@ 315-322 (lines=8) @@ | ||
| 312 | * @throws Exception |
|
| 313 | * @throws NotFoundException |
|
| 314 | */ |
|
| 315 | private function handleException($e) { |
|
| 316 | $this->logger->logException ( $e, [ |
|
| 317 | 'app' => 'ocr', |
|
| 318 | 'message' => 'Exception during file service function processing' |
|
| 319 | ] ); |
|
| 320 | if ($e instanceof NotFoundException) { |
|
| 321 | throw new NotFoundException ( $e->getMessage () ); |
|
| 322 | } else { |
|
| 323 | throw $e; |
|
| 324 | } |
|
| 325 | } |
|
| @@ 371-378 (lines=8) @@ | ||
| 368 | * @throws Exception |
|
| 369 | * @throws NotFoundException |
|
| 370 | */ |
|
| 371 | private function handleException($e) { |
|
| 372 | $this->logger->logException ( $e, [ |
|
| 373 | 'app' => 'ocr', |
|
| 374 | 'message' => 'Exception during job service function processing' |
|
| 375 | ] ); |
|
| 376 | if ($e instanceof NotFoundException) { |
|
| 377 | throw new NotFoundException ( $e->getMessage () ); |
|
| 378 | } else { |
|
| 379 | throw $e; |
|
| 380 | } |
|
| 381 | } |
|
| @@ 177-187 (lines=11) @@ | ||
| 174 | * @throws Exception |
|
| 175 | * @throws NotFoundException |
|
| 176 | */ |
|
| 177 | private function handleException($e) { |
|
| 178 | $this->logger->logException ( $e, [ |
|
| 179 | 'app' => 'ocr', |
|
| 180 | 'message' => 'Exception during message queue processing' |
|
| 181 | ] ); |
|
| 182 | if ($e instanceof NotFoundException) { |
|
| 183 | throw new NotFoundException ( $e->getMessage () ); |
|
| 184 | } else { |
|
| 185 | throw $e; |
|
| 186 | } |
|
| 187 | } |
|
| 188 | } |
|
| @@ 114-124 (lines=11) @@ | ||
| 111 | * @throws Exception |
|
| 112 | * @throws NotFoundException |
|
| 113 | */ |
|
| 114 | private function handleException($e) { |
|
| 115 | $this->logger->logException ( $e, [ |
|
| 116 | 'app' => 'ocr', |
|
| 117 | 'message' => 'Exception during status service function processing' |
|
| 118 | ] ); |
|
| 119 | if ($e instanceof NotFoundException) { |
|
| 120 | throw new NotFoundException ( $e->getMessage () ); |
|
| 121 | } else { |
|
| 122 | throw $e; |
|
| 123 | } |
|
| 124 | } |
|
| 125 | } |
|