Index: branches/5.2.x/core/kernel/utility/factory.php
===================================================================
diff -u -N -r15137 -r15420
--- branches/5.2.x/core/kernel/utility/factory.php (.../factory.php) (revision 15137)
+++ branches/5.2.x/core/kernel/utility/factory.php (.../factory.php) (revision 15420)
@@ -1,6 +1,6 @@
Files[$class_name]) ) {
- throw new Exception('File ' . FULL_PATH . $this->Files[$class_name] . ' containing class ' . $class_name . ' definition not found');
+ throw new kFactoryException('File ' . FULL_PATH . $this->Files[$class_name] . ' containing class ' . $class_name . ' definition not found');
}
kUtil::includeOnce(FULL_PATH . $this->Files[$class_name]);
@@ -141,6 +141,7 @@
* @param Array $arguments
* @return kBase
* @access public
+ * @throws kFactoryException
*/
public function getObject($name, $pseudo_class = '', $event_params = Array (), $arguments = Array ())
{
@@ -160,7 +161,7 @@
$error_msg = 'RealClass not defined for pseudo_class ' . $pseudo_class . '';
if ( $this->Application->isInstalled() ) {
- throw new Exception($error_msg);
+ throw new kFactoryException($error_msg);
}
else {
if ( $this->Application->isDebugMode() ) {
@@ -287,4 +288,9 @@
{
unset($this->Files[$real_class]);
}
+}
+
+
+class kFactoryException extends Exception {
+
}
\ No newline at end of file