Author: Sebastian Bergmann
Date: 2007-05-05 09:30:15 +0200 (Sat, 05 May 2007)
New Revision: 5063
Log:
- Do not throw exception in __toString().
Modified:
trunk/Workflow/src/nodes/action.php
Modified: trunk/Workflow/src/nodes/action.php
===================================================================
--- trunk/Workflow/src/nodes/action.php 2007-05-04 15:27:28 UTC (rev 5062)
+++ trunk/Workflow/src/nodes/action.php 2007-05-05 07:30:15 UTC (rev 5063)
@@ -59,7 +59,13 @@
*/
public function __toString()
{
- $object = $this->createObject();
+ try {
+ $object = $this->createObject();
+ }
+ catch ( ezcWorkflowExecutionException $e )
+ {
+ return $e->getMessage();
+ }
return (string)$object;
}
--
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components