[Solar-talk] Handling exceptions

Jeff Surgeson solar at 3hex.com
Fri Apr 18 14:52:21 CDT 2008


> >  Is this the correct way to be handling exceptions thrown by other vendor
> >  classes? or is there a more elegant or correct way to be doing it?
>
> I think in this particular case you should just wrap those
> Lux_Filesystem_Upload calls in try/catch and then display those as
> feedback in the form. I designed Lux_Filesystem_Upload to be used like
> that.

Yep! the way to go.

> Usually, _exceptionDuringFetch() means that something is "terribly"
> wrong, as in 505 wrong.

> Ps. Paul has been doing work with form uploads and
> Lux_Filesystem_Upload will probably be deprecated in favor of that new
> functionality.

I need to start using this, still needs some more functionality though :-)

Thanks!

-- 
...........::::::...........
Jeff Surgeson / South Africa


More information about the Solar-talk mailing list