condition - compound conditions
(import (rnrs)) ;R6RS
(import (rnrs conditions)) ;R6RS
(condition condition1 ...)
Returns a condition object with
the components of the
as its components, in
the same order, i.e., with the components of
appearing first in the same order as in
then with the components of
and so on.
Compound conditions act as if they were any of the included simple
conditions with regard to predicates and accessors.
Returns a single value; a condition. The returned condition is
compound if the total number of components is zero or greater than
one. Otherwise, it may be compound or simple.
(make-message-condition "I am an error")))
(error? con) => #t
(message? con) => #t
(condition-message con) => "I am an error"
Compound conditions are used when describing multiple aspects of
exceptional situations. They are passed to
They are normally caught with
Compound conditions are unique to R6RS.
This procedure can raise exceptions with the following condition types:
- &assertion (R6RS)
The wrong number of arguments was passed or an argument was outside its domain.
This procedure was first introduced in R6RS as part of the new
This page is part of the
It includes materials from the RnRS documents.
More information can be found at
Markup created by unroff 1.0sc, March 04, 2023.