doc for re-throwing a caught exception

15 views
Skip to first unread message

scott clasen

unread,
Aug 28, 2013, 5:19:04 PM8/28/13
to treehugg...@googlegroups.com
there doesnt seem to be a dsl for re-throwing a caught exception

Finally figured you need to Throw(REF("e"))  but it took me a while...

should there be a DSL RETHROW(REF("e")) or doc for using the Throw(REF("e")) ? Or did I miss how to do this in DSL?

eugene yokota

unread,
Aug 28, 2013, 5:22:34 PM8/28/13
to treehugg...@googlegroups.com
There's THROW in the documentation: http://eed3si9n.com/treehugger/return.html

-eugene



--
You received this message because you are subscribed to the Google Groups "treehugger-scala" group.
To unsubscribe from this group and stop receiving emails from it, send an email to treehugger-sca...@googlegroups.com.
To post to this group, send email to treehugg...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/treehugger-scala/e07d810e-8f7a-477a-ac7d-0dc9542736dd%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

scott clasen

unread,
Aug 28, 2013, 5:35:09 PM8/28/13
to treehugg...@googlegroups.com
Yep, but doing THROW(REF("e")) gives

[error]  found   : treehugger.forest.Ident
[error]  required: treehugger.forest.Type

eugene yokota

unread,
Aug 28, 2013, 5:36:55 PM8/28/13
to treehugg...@googlegroups.com
I see. Could you open a github issue for this?

-eugene



scott clasen

unread,
Aug 28, 2013, 5:47:47 PM8/28/13
to treehugg...@googlegroups.com
Yep willdo
Reply all
Reply to author
Forward
0 new messages