Code Duplication    Length = 8-8 lines in 2 locations

lib/Service/OcrService.php 1 location

@@ 463-470 (lines=8) @@
460
	 * @throws Exception
461
	 * @throws NotFoundException
462
	 */
463
	private function handleException($e) {
464
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during ocr service function processing']);
465
		if ($e instanceof NotFoundException) {
466
			throw new NotFoundException($e->getMessage());
467
		} else {
468
			throw $e;
469
		}
470
	}
471
}
472

lib/Service/QueueService.php 1 location

@@ 113-120 (lines=8) @@
110
	 * @throws Exception
111
	 * @throws NotFoundException
112
	 */
113
	private function handleException($e) {
114
		$this->logger->logException($e, ['app' => 'ocr', 'message' => 'Exception during message queue processing']);
115
		if ($e instanceof NotFoundException) {
116
			throw new NotFoundException($e->getMessage());
117
		} else {
118
			throw $e;
119
		}
120
	}
121
122
}