This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} | |