jboner/akka — comment on commit b5c579de1f4ff861b784cf8e9769c36d422d0ad3
File: akka-camel/src/main/scala/akka/camel/Camel.scala line 51
By RayRoestenburg:

context.stop in the catch could also throw an exception, (well it is not expected but it can), and you would probably want to know that the template could not start. (you would wonder why camel was stopped, where it was actually in the process of starting)
(Not compiled but you get the point, might not look nice, but I think more correct)
try {
template.start()
} catch {
case e=> {
try {
context.stop()
} catch {
case e=> // swallow, so the offending exception is thrown
}
throw e
}
}