emacs-prelude/vendor/yasnippet/snippets/scala-mode/try.catch-finally

12 lines
249 B
Text
Raw Normal View History

2012-02-17 22:12:32 +02:00
# Author: Jonas Bonèr <jonas@jonasboner.com>
# name: try { .. } catch { case e => ..} finally { ..}
# key: try
# --
try {
$0
} catch {
case ${1:e}: ${2:Exception} =>
${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
} finally {
}