[Javascript] Try and Catch Question

Alexander Freiria xandercoded at gmail.com
Tue Mar 3 14:58:33 CST 2009


I second that. That is what the function of the catch is for...

On Tue, Mar 3, 2009 at 3:52 PM, Brian L. Matthews <blmatthews at gmail.com>wrote:

> >
> >
> > The "catch(whatever)" is obviously a function-call
> >
>
> Uh, no. catch specifies where the program flow should go when throw is
> executed in the block preceding the catch. The whatever is just a
> variable that gets assigned the value that was thrown. It's often e or
> err for obvious reasons, but there's nothing special about either of
> those names.
>
> Brian
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
>



More information about the Javascript mailing list