Added possibility to add additional map_values to queries.
[ajatus.git] / plugins / ajatus / exceptions.php
blob4899d32f433a80aa9bee327bff95637d7a4e5e55
1 <?php
2 /**
3 *
4 * Copyright (c) 2008 Jerry Jalava <jerry.jalava@gmail.com>
5 * Licensed under the GPLv3 license
6 * http://www.gnu.org/licenses/gpl.html
7 *
8 */
10 /**
11 * Ajatus base exception
13 class ajatus_exception extends Exception
15 public function __construct($message, $code=0)
17 parent::__construct($message, $code);
21 /**
22 * Ajatus connection exception
24 class ajatus_connection_exception extends ajatus_exception
28 /**
29 * Ajatus database exception
31 class ajatus_database_exception extends ajatus_exception
33 /**
34 * 404 = not found
36 public function __construct($message, $code=404)
38 parent::__construct($message, $code);
42 /**
43 * Ajatus view exception
45 class ajatus_view_exception extends ajatus_exception
47 /**
48 * 404 = not found
50 public function __construct($message, $code=404)
52 parent::__construct($message, $code);
56 /**
57 * Ajatus type exception
59 class ajatus_type_exception extends ajatus_exception
63 /**
64 * Ajatus helper exception
66 class ajatus_helper_exception extends ajatus_exception
70 /**
71 * Ajatus metadata exception
73 class ajatus_metadata_exception extends ajatus_exception
77 /**
78 * Ajatus action exception
80 class ajatus_action_exception extends ajatus_exception