summaryrefslogtreecommitdiffstats
path: root/emacs.d/snippets/text-mode/scala-mode/try
blob: 0c33f1072b410462ae8240f87a70c34b5636ebcf (plain) (blame)
1
2
3
4
5
6
7
8
9
#Author : Jonas Bonèr <jonas@jonasboner.com>
#name : try { .. } catch { case e => ..}
# --
try {
  $0
} catch {
  case ${1:e}: ${2:Exception} => 
    ${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
}