12 lines
249 B
Text
12 lines
249 B
Text
|
# 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 {
|
||
|
|
||
|
}
|