diff options
author | xue <> | 2007-08-05 18:08:33 +0000 |
---|---|---|
committer | xue <> | 2007-08-05 18:08:33 +0000 |
commit | 80b976ac1b562200aac71c0c8fb154d0c40524fe (patch) | |
tree | 42bd58383cd6d0aebc37e658fbf4bd146bdca938 /framework/TComponent.php | |
parent | 90de6081224723aaea97522290a80e764a6b0900 (diff) |
fixed event error reporting.
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r-- | framework/TComponent.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php index 5b751ff3..5a3cd2f2 100644 --- a/framework/TComponent.php +++ b/framework/TComponent.php @@ -352,7 +352,7 @@ class TComponent if(method_exists($object,$method)) $object->$method($sender,$param); else - throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,get_class($object).'::'.$method.'()'); + throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,$handler); } else call_user_func($handler,$sender,$param); @@ -373,11 +373,11 @@ class TComponent if(method_exists($object,$method)) $object->$method($sender,$param); else - throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,get_class($object).'::'.$method.'()'); + throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,$handler[1]); } } else - throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,get_class($object).'::'.$method.'()'); + throw new TInvalidDataValueException('component_eventhandler_invalid',get_class($this),$name,gettype($handler)); } } else if(!$this->hasEvent($name)) |