rethrowing an exception

40 views
Skip to first unread message

Antti Karanta

unread,
Jun 16, 2015, 6:48:32 AM6/16/15
to cloju...@googlegroups.com

  Is it possible to rethrow an exception in ClojureCLR? I.e. analogous to C#'s

try {
...
} catch ( Exception e ) {
  // do something with e
  throw; // preserves original stack trace in e
}


dmiller2718

unread,
Jun 16, 2015, 8:57:10 AM6/16/15
to cloju...@googlegroups.com, antti....@gmail.com
Not at present.  I've added an issue to address that.  Will be added to the 1.7 release.
In the meantime, an inner exception is your best bet.
-David

dmiller2718

unread,
Jul 3, 2015, 4:58:02 PM7/3/15
to cloju...@googlegroups.com, dmill...@gmail.com, antti....@gmail.com
Fixed in latest release.

(throw)  does a rethrow.  Only valid in a (catch ... ).
Reply all
Reply to author
Forward
0 new messages