diff --git a/lib/Exceptions/NotFoundException.php b/lib/Exceptions/NotFoundException.php new file mode 100644 index 0000000..f08c0ad --- /dev/null +++ b/lib/Exceptions/NotFoundException.php @@ -0,0 +1,14 @@ +getMessage()); + throw new NotFoundException($e->getMessage(), $criteria); } else { throw $e; } @@ -49,7 +50,7 @@ class DiffTaskService { try { return $this->mapper->find($id, $userId); } catch(Exception $e) { - $this->handleException($e); + $this->handleException($e, ["userId" => $userId, "id" => $id]); } }