Skip to content

Commit

Permalink
Make MissingRouteException a 404.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jul 2, 2014
1 parent e26daf5 commit 8be90f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Routing/Error/MissingRouteException.php
Expand Up @@ -21,6 +21,16 @@
*/
class MissingRouteException extends Exception {

/**
* {@inheritDoc}
*/
protected $_messageTemplate = 'A route matching "%s" could not be found.';

/**
* {@inheritDoc}
*/
public function __construct($message, $code = 404) {
parent::__construct($message, $code);
}

}

0 comments on commit 8be90f5

Please sign in to comment.