11 The Built-In Classes
<object>
Function | Description | Page | |
---|---|---|---|
signal | Signals a condition. | 344 | |
error | Signals a non-recoverable error. | 344 | |
cerror | Signals a correctable error. | 345 | |
break | Invokes the debugger. | 346 |
Function | Description | Page | |
---|---|---|---|
default-handler | Called if no dynamic handler handles a condition. | 347 | |
return-query | Called to query the user and return. | 348 | |
return-allowed? | Returns true if a condition's recovery protocol allows returning values. | 349 | |
return-description | Returns a description of a condition's returned values. | 350 |
Function | Description | Page | |
---|---|---|---|
default-handler | Called if no dynamic handler handles a condition. | 347 |
<condition>
<serious-condition>
.:
Function | Description | Page | |
---|---|---|---|
default-handler | Called if no dynamic handler handles a condition. | 347 |
<serious-condition>
<error> is distinct from <serious-condition> so one can establish a handler for errors that does not also trap unpredictable environmental exceptions such as network problems.
<error>
<string>
. A format string describing the error.
<sequence>
. Format arguments to splice into the format string to describe the error.
The recovery protocol of <simple-error>
is empty.
Function | Description | Page | |
---|---|---|---|
condition-format-string | Returns the format string of a simple condition. | 350 | |
condition-format-arguments | Returns the format arguments of a simple condition. | 351 |
<error>
<object>
. The object whose type was checked.
<type>
. The type which was expected. The error was signaled because the object was not of this type.
The recovery protocol is empty.
<type-error>
provides the following operations::
Function | Description | Page | |
---|---|---|---|
type-error-value | Returns the value which was not of the expected type. | 351 | |
type-error-expected-type | Returns the expected type of the type check that led to the type error. | 351 |
<error>
<condition>
<warning>
:
Function | Description | Page | |
---|---|---|---|
default-handler | Called if no dynamic handler handles a condition. | 347 |
There is a default handler for <warning> that displays the warning in a user-interface dependent way and then returns #f. The recovery protocol is that any value can be returned and will be ignored.
<warning>
<string>
. A format string describing the warning.
<sequence>
. Format arguments to splice into the format string to describe the warning.
The recovery protocol is that any value can be returned and will be ignored.
Function | Description | Page | |
---|---|---|---|
condition-format-string | Returns the format string of a simple condition. | 350 | |
condition-format-arguments | Returns the format arguments of a simple condition. | 351 |
<condition>
#f
or an instance of <condition>
. This argument is accepted and ignored by <restart>; some subclasses save the value of this initialization argument and use it to associate a restart with a particular condition from which the restart can recover. No such subclasses are defined as part of the language. Other restarts do not care; they can recover from any condition.
There is a default handler for <restart> that signals an error reporting an attempt to use a restart for which no restart handler was established. The recovery protocol concept is not applicable to restarts.
Function | Description | Page | |
---|---|---|---|
restart-query | Called to query the user and restart. | 348 |
Function | Description | Page | |
---|---|---|---|
default-handler | Called if no dynamic handler handles a condition. | 347 |
<restart>
<string>
. A format string describing the restart.
<sequence>
. Format arguments to splice into the format string to describe the restart.
Typical implementations will use the format string and format arguments to produce a description of the restart.
Function | Description | Page | |
---|---|---|---|
condition-format-string | Returns the format string of a simple condition. | 350 | |
condition-format-arguments | Returns the format arguments of a simple condition. | 351 |
<restart>
Handlers are expected to terminate execution of the current application command, or similar unit of execution, and return control to something like an application command loop. This is comparable to command-period on the Macintosh. The exact details of this feature depend on the particular environment, of course, but signaling an instance of <abort> is a uniform way to "get out."
Generated with Harlequin WebMaker