mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-16 10:24:18 +00:00
restructuring classic snippets dir to conform to new parenting specs
This commit is contained in:
11
snippets/scala-mode/try.catch-finally
Normal file
11
snippets/scala-mode/try.catch-finally
Normal file
@@ -0,0 +1,11 @@
|
||||
#Author : Jonas Bonèr <jonas@jonasboner.com>
|
||||
#name : try { .. } catch { case e => ..} finally { ..}
|
||||
# --
|
||||
try {
|
||||
$0
|
||||
} catch {
|
||||
case ${1:e}: ${2:Exception} =>
|
||||
${1:println(\"ERROR: \" + e) // TODO: handle exception}\n}
|
||||
} finally {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user