Exception

GitHub   Edit on GitHub

Utilities for working with the Exception type.

The Exception type represents an error that has occured during computation.

Added in 0.3.0 No other changes yet.
1
import Exception from "exception"

Values

Functions included in the Exception module.

Exception.registerPrinter

Added in 0.3.0 No other changes yet.
1
registerPrinter : (Exception -> Option<String>) -> Void

Registers an exception printer. When an exception is thrown, all registered printers are called in order from the most recently registered printer to the least recently registered printer. The first Some value returned is used as the exception’s string value.

Parameters:

param type description
printer Exception -> Option<String> The exception printer to register
This is a notification!