Added the ErrorHandler notifications to all try-catch blocks
This commit is contained in:
parent
2127e8077e
commit
c4e2d73668
17 changed files with 162 additions and 56 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue