emacs-prelude/vendor/yasnippet/snippets/scala-mode/try
2012-02-17 22:12:32 +02:00

10 lines
No EOL
222 B
Text

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