Added the ErrorHandler notifications to all try-catch blocks

This commit is contained in:
Jonas Bonér 2011-03-02 00:14:45 +01:00
parent 2127e8077e
commit c4e2d73668
17 changed files with 162 additions and 56 deletions

View file

@ -5,6 +5,7 @@
package akka.http
import akka.actor.{ActorRegistry, ActorRef, Actor}
import akka.actor.{ErrorHandler, ErrorHandlerEvent}
import javax.servlet.http.{HttpServletResponse, HttpServletRequest}
import javax.servlet.http.HttpServlet
@ -388,6 +389,7 @@ trait RequestMethod {
}
} catch {
case io =>
ErrorHandler notifyListeners ErrorHandlerEvent(io, this)
false
}
}
@ -405,7 +407,8 @@ trait RequestMethod {
pipe.complete
}
} catch {
case io: IOException => {}
case io: IOException =>
ErrorHandler notifyListeners ErrorHandlerEvent(io, this)
}
}