eed3si9n / treehugger

treehugger.scala is a library to code Scala programmatically.
http://eed3si9n.com/treehugger
Other
133 stars 20 forks source link

DSL or Doc for rethrowing an exception #21

Closed sclasen closed 11 years ago

sclasen commented 11 years ago

Attempting to generate a "re-throw" of an exception inside a catch clause fails when attempting to use the THROW DSL

THROW(REF("e"))

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

Using the Throw case class directly works

Throw(REF("e"))

Guess the best thing is to add this usage to THROW?