Next: , Up: Exceptions   [Contents][Index]


4.6.1 Exception types

The (hoot exceptions) module implements Guile’s exception API. See the Guile manual for more detailed information.

Procedure: make-exception exceptions …

Return an exception object composed of exceptions.

Procedure: exception? obj

Return #t if obj is an exception object.

Below are the built-in exception types and their respective constructors, predicates, and accessors.

Exception Type: &exception
Procedure: simple-exception? obj
Exception Type: &compound-exception
Procedure: make-compound-exception components
Procedure: compound-exception? obj
Procedure: compound-exception-components compound-exception
Exception Type: &message
Procedure: make-exception-with-message message
Procedure: exception-with-message? obj
Procedure: exception-message exception
Exception Type: &warning
Procedure: make-warning
Procedure: warning? obj
Exception Type: &serious
Procedure: make-serious-exception
Procedure: serious-exception? obj
Exception Type: &error
Procedure: make-error
Procedure: error? obj
Exception Type: &violation
Procedure: make-violation
Procedure: violation? obj
Exception Type: &assertion
Procedure: make-assertion-violation
Procedure: assertion-violation? obj
Exception Type: &arity-violation
Procedure: make-arity-violation
Procedure: arity-violation? obj
Exception Type: &implementation-restriction
Procedure: make-implementation-restriction-violation
Procedure: implementation-restriction-violation? obj
Exception Type: &failed-type-check
Procedure: make-failed-type-check predicate
Procedure: failed-type-check? obj
Procedure: failed-type-check-predicate exception
Exception Type: &non-continuable
Procedure: make-non-continuable-violation
Procedure: non-continuable-violation? obj
Exception Type: &irritants
Procedure: make-exception-with-irritants irritants
Procedure: exception-with-irritants? obj
Procedure: exception-irritants exception
Exception Type: &origin
Procedure: make-exception-with-origin origin
Procedure: exception-with-origin? obj
Procedure: exception-origin exception
Exception Type: &lexical
Procedure: make-lexical-violation
Procedure: lexical-violation? obj
Exception Type: &i/o
Procedure: make-i/o-error
Procedure: i/o-error?
Exception Type: &i/o-line-and-column
Procedure: make-i/o-line-and-column-error line column
Procedure: i/o-line-and-column-error? obj
Procedure: i/o-error-line exception
Procedure: i/o-error-column exception
Exception Type: &i/o-filename
Procedure: make-i/o-filename-error filename
Procedure: i/o-filename-error? obj
Procedure: i/o-error-filename exception
Exception Type: &i/o-not-seekable
Procedure: make-i/o-not-seekable-error
Procedure: i/o-not-seekable-error? obj
Exception Type: &i/o-port
Procedure: make-i/o-port-error port
Procedure: i/o-port-error? obj
Procedure: i/o-error-port exception

Next: Raising and handling exceptions, Up: Exceptions   [Contents][Index]