1 Exception utilities
Utilities for raising, handling and printing exceptions.
(display-exn exn) → void? |
exn : exn? |
Prints the message and stack trace of exn to the current output port. Re-provided from "text-ui.ss" in SchemeUnit.
Examples: | ||||||
| ||||||
|
Raises an exception with a default set of continuation marks. id is the identifier of the exception’s structure type transformer binding (e.g. exn or exn:fail). message and args are passed to the exception’s constructor, along with the value of current-continuation-marks.
Examples: | ||||||
| ||||||
| ||||||
| ||||||
|
Raises new-exn with a message of:
(string-append (exn-message old-exn) ": " new-message)
and the same continuation marks as old-exn. Any additional args are passed to the constructor of new-exn.
Examples: | |||||
| |||||
|