| @@ 317-324 (lines=8) @@ | ||
| 314 | * @throws Exception |
|
| 315 | * @throws NotFoundException |
|
| 316 | */ |
|
| 317 | private function handleException($e) { |
|
| 318 | $this->logger->logException ( $e, [ |
|
| 319 | 'app' => 'ocr', |
|
| 320 | 'message' => 'Exception during file service function processing' |
|
| 321 | ] ); |
|
| 322 | if ($e instanceof NotFoundException) { |
|
| 323 | throw new NotFoundException ( $e->getMessage () ); |
|
| 324 | } else { |
|
| 325 | throw $e; |
|
| 326 | } |
|
| 327 | } |
|
| @@ 347-354 (lines=8) @@ | ||
| 344 | * @throws Exception |
|
| 345 | * @throws NotFoundException |
|
| 346 | */ |
|
| 347 | private function handleException($e) { |
|
| 348 | $this->logger->logException ( $e, [ |
|
| 349 | 'app' => 'ocr', |
|
| 350 | 'message' => 'Exception during job service function processing' |
|
| 351 | ] ); |
|
| 352 | if ($e instanceof NotFoundException) { |
|
| 353 | throw new NotFoundException ( $e->getMessage () ); |
|
| 354 | } else { |
|
| 355 | throw $e; |
|
| 356 | } |
|
| 357 | } |
|
| @@ 141-151 (lines=11) @@ | ||
| 138 | * @throws Exception |
|
| 139 | * @throws NotFoundException |
|
| 140 | */ |
|
| 141 | private function handleException($e) { |
|
| 142 | $this->logger->logException ( $e, [ |
|
| 143 | 'app' => 'ocr', |
|
| 144 | 'message' => 'Exception during message queue processing' |
|
| 145 | ] ); |
|
| 146 | if ($e instanceof NotFoundException) { |
|
| 147 | throw new NotFoundException ( $e->getMessage () ); |
|
| 148 | } else { |
|
| 149 | throw $e; |
|
| 150 | } |
|
| 151 | } |
|
| 152 | } |
|
| @@ 111-121 (lines=11) @@ | ||
| 108 | * @throws Exception |
|
| 109 | * @throws NotFoundException |
|
| 110 | */ |
|
| 111 | private function handleException($e) { |
|
| 112 | $this->logger->logException ( $e, [ |
|
| 113 | 'app' => 'ocr', |
|
| 114 | 'message' => 'Exception during status service function processing' |
|
| 115 | ] ); |
|
| 116 | if ($e instanceof NotFoundException) { |
|
| 117 | throw new NotFoundException ( $e->getMessage () ); |
|
| 118 | } else { |
|
| 119 | throw $e; |
|
| 120 | } |
|
| 121 | } |
|
| 122 | } |
|