Sebastian Bergmann wrote:
> Author: sb
> Date: Fri Aug 10 10:58:28 2007
> New Revision: 5863
> 
> Log:
> - Fix exception.
> 
> Modified:
>     trunk/Workflow/src/conditions/variables.php
> 
> Modified: trunk/Workflow/src/conditions/variables.php
> ==============================================================================
> --- trunk/Workflow/src/conditions/variables.php [iso-8859-1] (original)
> +++ trunk/Workflow/src/conditions/variables.php [iso-8859-1] Fri Aug 10 
> 10:58:28 2007
> @@ -43,7 +43,9 @@
>      {
>          if ( !$condition instanceof ezcWorkflowConditionComparison )
>          {
> -            throw new ezcWorkflowInvalidWorkflowException;
> +            throw new ezcWorkflowInvalidWorkflowException(
> +              '$condition is not an instance of 
> ezcWorkflowConditionComparison.'
> +            );
>          }

I think it is common to use ezcBaseValueException to throw exceptions 
about types.

-- 
Alexandru Stanoi
eZ Components System Developer
eZ Systems | http://ez.no
-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to