10 lines
No EOL
222 B
Text
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}
|
|
} |