Re: exceptions
Adam Chlipala <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
fredcsunoedu wrote: >Complete newbie so please let me know if i'm in the wrong place. > >is there any way to raise in a "handle" expression the same exception that >got you there? >that is, i want to do something like > >someExpression handle _ => (cleanup(); raise theSameException) > >i don't see a way to bind an identifier to the exception being handled. > > Just use a variable instead of _ in your pattern, in the same way you would in normal pattern-matching over datatypes. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642