Next: Dynamic Wind, Previous: Exceptions, Up: Control Mechanisms
Guile provides a set of convenience procedures for signaling error conditions that are implemented on top of the exception primitives just described.
Raise an error with key
misc-errorand a message constructed by displaying msg and writing args.
Raise an error with key key. subr can be a string naming the procedure associated with the error, or
#f. message is the error message string, possibly containing~Sand~Aescapes. When an error is reported, these are replaced by formating the corresponding members of args:~Aformats usingdisplayand~Sformats usingwrite.rest is a list or
#fdepending on key: If key issystem-errorthen it should be a list containing the Unixerrnovalue; If key issignalthen it should be a list containing the Unix signal number; otherwise it will usually be#f.