In the sample below, "hi" is a simple view that has a problem in that
it has infinite recursion and so throws an exception. By default, if
I call buriedHi, I get no exceptions. If I call unearthedHi the
exception is shown.
Is there some way to configure lift to implicitly have the behavior of
unearthedHi without having to wrap everything in a try/catch block?
(Yes, I know that using closures that try/catch can be reduced to a
simple function call but would still rather not have to do that for
all views.) Also, it seems like Lift is burying exceptions elsewhere
too but I cannot say so for sure.
class foo extends InsecureLiftView {
def hi: NodeSeq = <html>{ hi }</html>
def buriedHi: NodeSeq = hi
def unearthedHi: NodeSeq = try { hi } catch { case t:Throwable =>
t.printStackTrace; <html><body>stack trace found</body></html> }
}
thank you
Br's,
Marius
Cheers, Tim
> --
> 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.
>
>
However, I think something is catching and burying the exception
before it can get to the LiftRules.exceptionHandler handlers.
I've looked through the Lift code and it looks like the default
handler will report exceptions, whereas mine is not. Furthermore, I
have tried manually defining my own exceptionHandler in a number of
different ways and they do not get invoked.
I've also tried throwing Exceptions instead of Errors (the Throwable
that led me to this problem was actually an Error, StackOverflowError)
but these Exceptions seem to be buried as well.
There is also nothing in the logs. My Boot.scala is very bare.
I am running Lift 2.0-M4.
Is there anything else in the Lift framework that might be catching
exceptions before the LiftRules.exceptionHandler handlers get invoked?
thank you
--
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.
thank you
-Ross
I created a ticket #467:
thank you