Exception
Edit on GitHubUtilities for working with the Exception type.
The Exception type represents an error that has occurred during computation.
Added in 0.3.0
No other changes yet.
Values
Functions and constants included in the Exception module.
Exception.registerPrinter
Added in 0.3.0
No other changes yet.
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 |
Examples: