Skip to content

Commit

Permalink
Made exceptionHandler work correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dpp committed Feb 3, 2012
1 parent da52cb1 commit 57b930d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/webkit/src/main/scala/net/liftweb/http/CometActor.scala
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ trait CometActor extends LiftActor with LiftCometActor with BindHelpers {
try { try {
what.apply(in) what.apply(in)
} catch { } catch {
case e if exceptionHandler.isDefinedAt(e) => exceptionHandler(e)
case e: Exception => reportError("Message dispatch for " + in, e) case e: Exception => reportError("Message dispatch for " + in, e)
} }
if (S.functionMap.size > 0) { if (S.functionMap.size > 0) {
Expand All @@ -777,6 +778,7 @@ trait CometActor extends LiftActor with LiftCometActor with BindHelpers {
try { try {
what.isDefinedAt(in) what.isDefinedAt(in)
} catch { } catch {
case e if exceptionHandler.isDefinedAt(e) => exceptionHandler(e); false
case e: Exception => reportError("Message test for " + in, e); false case e: Exception => reportError("Message test for " + in, e); false
} }
} }
Expand Down Expand Up @@ -914,6 +916,7 @@ trait CometActor extends LiftActor with LiftCometActor with BindHelpers {
try { try {
performReRender(false) performReRender(false)
} catch { } catch {
case e if exceptionHandler.isDefinedAt(e) => exceptionHandler(e)
case e: Exception => reportError("Failed performReRender", e) case e: Exception => reportError("Failed performReRender", e)
} }


Expand All @@ -937,6 +940,7 @@ trait CometActor extends LiftActor with LiftCometActor with BindHelpers {
f => try { f => try {
List(f()) List(f())
} catch { } catch {
case e if exceptionHandler.isDefinedAt(e) => exceptionHandler(e); Nil
case e: Exception => reportError("Ajax function dispatch", e); Nil case e: Exception => reportError("Ajax function dispatch", e); Nil
} }
} }
Expand Down

0 comments on commit 57b930d

Please sign in to comment.