Next: , Previous: , Up: The basic curses library   [Contents][Index]


5.2.4 Errors and Exceptions

The curses library uses SRFI-34’s raise and SRFI-35 conditions to signal errors.

All errors in the curses library are of type &curses-error.

Procedure: curses-error? err

Returns true if err is a &curses-error

The wrong type error has two fields: arg and expected-type.

Procedure: curses-wrong-type-arg-error? err
Procedure: curses-wrong-type-arg-error:arg err
Procedure: curses-wrong-type-arg-error:expected-type err

The predicate and accessors for the wrong type error.