For debugging/logging purpose, I commonly have to find the root cause of
a Failure.
When it is an exception and the failure is composed, I miss something
like "messageChain" but which allows to find the deeper exception of the
composition.
It is rather easy to build the list of Failure in a composed Failure
with a little recursion and then find the first exception (if exists),
but it would be even cooler if it was a built-in method of Failure,
something like:
Failure#exceptionChain : List[Throwable] (deeper first ?)
or
Failure#getCause : Option[Throwable] (only the deepest ?)
What do thing ? How do you log / debug composed Failure caused by
exception ?
Thanks,
--
Francois ARMAND
http://fanf42.blogspot.com
http://www.normation.com
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Done:
https://www.assembla.com/spaces/liftweb/tickets/861-exceptionchain-or-getcause-for-failure