mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Finished documenting (scheme base)
This commit is contained in:
parent
3fc509cb4d
commit
b3fd2a2b5b
1 changed files with 7 additions and 1 deletions
|
@ -1469,7 +1469,13 @@ The `with-exception-handler` procedure returns the results of invoking `thunk`.
|
||||||
|
|
||||||
# with-handler
|
# with-handler
|
||||||
|
|
||||||
(with-handler handler body)
|
*Syntax*
|
||||||
|
|
||||||
|
(with-handler handler expression1 expression2 ...)
|
||||||
|
|
||||||
|
`with-handler` provides a convenient exception handling syntax.
|
||||||
|
|
||||||
|
The expressions are executed in order and if no exceptions are raised the result of the last expression is returned. Otherwise if an exception is raised then `handler` is called and its results are returned.
|
||||||
|
|
||||||
# write-char
|
# write-char
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue