Hi, in runAjax
we have this:
case e: Exception => S.runExceptionHandlers(requestState, e)
And S.runExceptionHandlers
takes in Throwable
:
def runExceptionHandlers(req: Req, orig: Throwable): Box[LiftResponse] = {
I know that “best practice” is to catch Exception
and not Throwable
or Error
, but in real life f.eg. NoSuchMethodError
can occur, and should be handled to give nice error-messages (handled in installed Exception-handlers), instead of the application just shutting down or silently not working.
Anyone up for changing this in LiftServlet.runAjax
to catch Throwable
?