RouteNotFoundException.php 327 B

12345678910111213141516
  1. <?php
  2. class Minz_RouteNotFoundException extends Minz_Exception {
  3. private $route;
  4. public function __construct ($route, $code = self::ERROR) {
  5. $this->route = $route;
  6. $message = 'Route `' . $route . '` not found';
  7. parent::__construct ($message, $code);
  8. }
  9. public function route () {
  10. return $this->route;
  11. }
  12. }