]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/Irc/extlib/phergie/Phergie/Plugin/Exception.php
$related must contain class names, no table names ("all" lower-case) + fixed some...
[quix0rs-gnu-social.git] / plugins / Irc / extlib / phergie / Phergie / Plugin / Exception.php
1 <?php
2 /**
3  * Phergie
4  *
5  * PHP version 5
6  *
7  * LICENSE
8  *
9  * This source file is subject to the new BSD license that is bundled
10  * with this package in the file LICENSE.
11  * It is also available through the world-wide-web at this URL:
12  * http://phergie.org/license
13  *
14  * @category  Phergie
15  * @package   Phergie
16  * @author    Phergie Development Team <team@phergie.org>
17  * @copyright 2008-2010 Phergie Development Team (http://phergie.org)
18  * @license   http://phergie.org/license New BSD License
19  * @link      http://pear.phergie.org/package/Phergie
20  */
21
22 /**
23  * Exception related to plugin handling.
24  *
25  * @category Phergie
26  * @package  Phergie
27  * @author   Phergie Development Team <team@phergie.org>
28  * @license  http://phergie.org/license New BSD License
29  * @link     http://pear.phergie.org/package/Phergie
30  */
31 class Phergie_Plugin_Exception extends Phergie_Exception
32 {
33     /**
34      * Error indicating that a path containing plugins was specified, but
35      * did not reference a readable directory
36      */
37     const ERR_DIRECTORY_NOT_READABLE = 1;
38
39     /**
40      * Error indicating that an attempt was made to locate the class for a
41      * specified plugin, but the class could not be found
42      */
43     const ERR_CLASS_NOT_FOUND = 2;
44
45     /**
46      * Error indicating that an attempt was made to locate the class for a
47      * specified plugin, but that the found class did not extend the base
48      * plugin class
49      */
50     const ERR_INCORRECT_BASE_CLASS = 3;
51
52     /**
53      * Error indicating that an attempt was made to locate the class for a
54      * specified plugin, but that the found class cannot be instantiated
55      */
56     const ERR_CLASS_NOT_INSTANTIABLE = 4;
57
58     /**
59      * Error indicating that an attempt was made to access a plugin that had
60      * not been loaded and autoloading was not enabled to load it
61      */
62     const ERR_PLUGIN_NOT_LOADED = 5;
63
64     /**
65      * Error indicating that an attempt was made to access the configuration
66      * handler before one had been set
67      */
68     const ERR_NO_CONFIG_HANDLER = 6;
69
70     /**
71      * Error indicating that an attempt was made to access the plugin
72      * handler before one had been set
73      */
74     const ERR_NO_PLUGIN_HANDLER = 7;
75
76     /**
77      * Error indicating that an attempt was made to access the event
78      * handler before one had been set
79      */
80     const ERR_NO_EVENT_HANDLER = 8;
81
82     /**
83      * Error indicating that an attempt was made to access the connection
84      * before one had been set
85      */
86     const ERR_NO_CONNECTION = 9;
87
88     /**
89      * Error indicating that an attempt was made to access the current
90      * incoming event before one had been set
91      */
92     const ERR_NO_EVENT = 10;
93
94     /**
95      * Error indicating that a dependency of the plugin was unavailable at
96      * the time that an attempt was made to load it
97      */
98     const ERR_REQUIREMENT_UNSATISFIED = 11;
99
100     /**
101      * Error indicating that a call was made to a nonexistent plugin method
102      * and that its __call() implementation did not process that call as an
103      * attempt to trigger an event - this is intended to aid in debugging of
104      * such situations
105      */
106     const ERR_INVALID_CALL = 12;
107
108     /**
109      * Error indicating that a fatal runtime issue was encountered within a
110      * plugin
111      */
112     const ERR_FATAL_ERROR = 13;
113
114     /**
115      * Error indicating that a class specified to be used for iterating
116      * plugins cannot be found by the autoloader or does not extend
117      * FilterIterator
118      */
119     const ERR_INVALID_ITERATOR_CLASS = 14;
120 }