Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Commit

Permalink
changed thrown exception in model
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Klauenbosch committed Jul 10, 2017
1 parent 23f494c commit 397b364
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use ChrisAndChris\Common\RowMapperBundle\Entity\Entity;
use ChrisAndChris\Common\RowMapperBundle\Entity\KeyValueEntity;
use ChrisAndChris\Common\RowMapperBundle\Exceptions\Database\NoSuchRowFoundException;
use ChrisAndChris\Common\RowMapperBundle\Exceptions\DatabaseException;
use ChrisAndChris\Common\RowMapperBundle\Exceptions\ForeignKeyConstraintException;
use ChrisAndChris\Common\RowMapperBundle\Exceptions\InvalidOptionException;
Expand Down Expand Up @@ -240,7 +241,7 @@ private function handleGeneric(PdoStatement $statement, \Closure $mappingCallbac
if (!empty($statement->getRequiresResultErrorMessage())) {
$error = $statement->getRequiresResultErrorMessage();
}
throw new NotFoundHttpException($error);
throw new NoSuchRowFoundException($error);
}

return $mappingCallback($statement);
Expand Down

0 comments on commit 397b364

Please sign in to comment.