File: try.md

package info (click to toggle)
coffeescript 2.7.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,376 kB
  • sloc: makefile: 20; xml: 9; javascript: 5; sh: 1
file content (7 lines) | stat: -rw-r--r-- 266 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
## Try/Catch/Finally

`try` expressions have the same semantics as `try` statements in JavaScript, though in CoffeeScript, you may omit _both_ the catch and finally parts. The catch part may also omit the error parameter if it is not needed.

```
codeFor('try')
```