From cae1efd552ed0618b13120e07c346cbe28cbd00a Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sat, 2 Mar 2013 00:36:12 +0100 Subject: Corrections quelques bugs + modif fichier config BDD + ajout fichier build.sh pour générer la lib Minz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/exceptions/MinzException.php | 94 ---------------------------------------- 1 file changed, 94 deletions(-) delete mode 100644 lib/exceptions/MinzException.php (limited to 'lib/exceptions/MinzException.php') diff --git a/lib/exceptions/MinzException.php b/lib/exceptions/MinzException.php deleted file mode 100644 index 8fca5ec16..000000000 --- a/lib/exceptions/MinzException.php +++ /dev/null @@ -1,94 +0,0 @@ -route = $route; - - $message = 'Route `' . $route . '` not found'; - - parent::__construct ($message, $code); - } - - public function route () { - return $this->route; - } -} -class PDOConnectionException extends MinzException { - public function __construct ($string_connection, $user, $code = self::ERROR) { - $message = 'Access to database is denied for `' . $user . '`' - . ' (`' . $string_connection . '`)'; - - parent::__construct ($message, $code); - } -} -class CurrentPagePaginationException extends MinzException { - public function __construct ($page) { - $message = 'Page number `' . $page . '` doesn\'t exist'; - - parent::__construct ($message, self::ERROR); - } -} -- cgit v1.2.3