Exception Base Classes
The :std/error
library provides base classes for exceptions and errors.
usage
(import :std/error)
exception
(defsyntax exception)
Empty base class for library-defined exceptions.
<error>
(defsyntax <error>)
Base class for commonly structured error objects.
It is a struct type with 3 fields:
message
: a string message describing the errorirritants
: a list containing the irritants pertaining to the errortrace
: an optional symbol tracing the originating procedure
io-error
(defstruct (io-error <error>) ())
Errors raised by the standard library because of I/O conditions.
raise-io-error
usage
(raise-io-error where what . irritants)
Raises an io-error
.
timeout-error
(defstruct (timeout-error <error>) ())
Errors raised by the standard library because of timeouts.
raise-timeout
usage
(raise-timeout where what . irritants)
Raises a timeout-error
.