Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
222 B

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