Skip to content

Commit

Permalink
Use NotFoundHttpException instead of Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
konandrum committed Aug 9, 2011
1 parent da2d4b2 commit 6d0136c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Metastaz/MetastazContainer.php
Expand Up @@ -75,7 +75,7 @@ public function hasParameter($name)
public function getParameter($name)
{
if (!$this->hasParameter($name))
throw new Exception(sprintf('Missing %s parameter', $name));
throw new NotFoundHttpException(sprintf('Missing %s parameter', $name));
return $this->parameters[$name];
}

Expand Down

0 comments on commit 6d0136c

Please sign in to comment.