$form->getErrorSchema() contains all validation errors thrown

On Apr 20, 2:55 pm, WallTearer <walltea...@gmail.com> wrote:
> Aaaargh,
> I've created custom PostValidator, but when I'm throwing my custom
> exception from that post validator, symfony catches it first, and I
> can not catch it in the action.
>
> I've tried to create custom exception class that extends
> sfValidatorError class (class sfValidatorLicenseError extends
> sfValidatorError)
> and than catch it in the action:
> try
> {
> $this->form->isValid();}
>
> catch (sfValidatorLicenseError $e)
> {}
> but it did catch it - sfForm catched it first =(
>
> Also I've tried to throw/catch simpe Exception object, but in this
> case symfony catches this exception somewhere and shows an error page.
>
> This wasting of time drives me mad.
>
> Any ideas? :)
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to