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
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
23 * Exception related to plugin handling.
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
31 class Phergie_Plugin_Exception extends Phergie_Exception
34 * Error indicating that a path containing plugins was specified, but
35 * did not reference a readable directory
37 const ERR_DIRECTORY_NOT_READABLE = 1;
40 * Error indicating that an attempt was made to locate the class for a
41 * specified plugin, but the class could not be found
43 const ERR_CLASS_NOT_FOUND = 2;
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
50 const ERR_INCORRECT_BASE_CLASS = 3;
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
56 const ERR_CLASS_NOT_INSTANTIABLE = 4;
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
62 const ERR_PLUGIN_NOT_LOADED = 5;
65 * Error indicating that an attempt was made to access the configuration
66 * handler before one had been set
68 const ERR_NO_CONFIG_HANDLER = 6;
71 * Error indicating that an attempt was made to access the plugin
72 * handler before one had been set
74 const ERR_NO_PLUGIN_HANDLER = 7;
77 * Error indicating that an attempt was made to access the event
78 * handler before one had been set
80 const ERR_NO_EVENT_HANDLER = 8;
83 * Error indicating that an attempt was made to access the connection
84 * before one had been set
86 const ERR_NO_CONNECTION = 9;
89 * Error indicating that an attempt was made to access the current
90 * incoming event before one had been set
92 const ERR_NO_EVENT = 10;
95 * Error indicating that a dependency of the plugin was unavailable at
96 * the time that an attempt was made to load it
98 const ERR_REQUIREMENT_UNSATISFIED = 11;
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
106 const ERR_INVALID_CALL = 12;
109 * Error indicating that a fatal runtime issue was encountered within a
112 const ERR_FATAL_ERROR = 13;
115 * Error indicating that a class specified to be used for iterating
116 * plugins cannot be found by the autoloader or does not extend
119 const ERR_INVALID_ITERATOR_CLASS = 14;