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