summaryrefslogtreecommitdiff
path: root/lib/Minz/RouteNotFoundException.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Minz/RouteNotFoundException.php')
-rw-r--r--lib/Minz/RouteNotFoundException.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/Minz/RouteNotFoundException.php b/lib/Minz/RouteNotFoundException.php
new file mode 100644
index 000000000..dc4f6fbad
--- /dev/null
+++ b/lib/Minz/RouteNotFoundException.php
@@ -0,0 +1,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;
+ }
+}