Guest User

Untitled

a guest
Dec 22nd, 2014
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.20 KB | None | 0 0
  1. def yoba(): Boolean = {
  2.   try {
  3.     DB.withTransaction { implicit connection =>
  4.        //
  5.        // blah
  6.        //
  7.  
  8.        return true
  9.     }
  10.   } catch {
  11.      case _: Throwable => false
  12.   }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment