Subj : Re: try catch blocks To : netscape.public.mozilla.jseng From : =?ISO-8859-1?Q?Georg_Maa=DF?= Date : Thu May 15 2003 09:47 pm Brendan Eich wrote: > SpiderMonkey supports an extension to ECMA: catch guards. If you write > > try { > . . . > } catch (e if e instanceof SQLException) { > // here we know e is an SQLException > } catch (e) { > // this is the "catch-all" clause > } finally { > // code here runs no matter how control leaves the try-catch chain > } > > I don't recall whether Rhino supports this extension. > > /be Will this awful hack remain in JS 2.0? There it is not necesary, if it is implemented like known from C++ an Java. -- Georg Maaß - bioshop.de D-93466 Chamerau, Roßbergweg 42 JavaScript, C++ Engineering - The ultimative DHTML engine: http://gml-modul.sourceforge.net - http://sourceforge.net/projects/gml-modul .