Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am oheidemann on github.
* I am oheidemann (https://keybase.io/oheidemann) on keybase.
* I have a public key ASD0tdqmdjbjtrHDaTnAuTEn2zcWQ2Kt6aBdJJTXVfIm4Ao
To claim this, I am signing this object:
@oheidemann
oheidemann / test.scala
Created October 27, 2015 09:47
ExceptionInInitializerError is Fatal
import scala.util.Try
object ABC {throw new RuntimeException}
try {
Try {ABC}.recover {case x => println("I caught it: " + x)}
} catch {
case y: Throwable => println("Now, i caught it: " + y)
}
import play.api._
import play.api.mvc._
object Global extends GlobalSettings {
override def onRouteRequest(request: RequestHeader): Option[Handler] = {
println("onRouteRequest:" + request.toString)
super.onRouteRequest(request)
}