12 The Built-In Functions
signal [Function]
signal condition Þ valuessignal string #rest arguments Þ values
<condition>.
<string>.
<object>.
<object>.
(condition). If a handler returns, all the values that it returned are returned from signal. If signal returns when condition's recovery protocol does not allow returning, some handler has violated protocol; signal does not check for this error. If condition is a restart, the caller of signal should always assume that it might return.The second form signals a condition of type <simple-warning>.
error [Function]
error condition Þ {will never return}error string #rest arguments Þ {will never return}
<condition>.
<string>.
<object>.
error will never return.
The second form signals a condition of type <simple-error>.
cerror [Function]
cerror restart-description condition Þ falsecerror restart-description string #rest arguments Þ false
<string>, interpreted as a format string.
<condition>.
<string>, interpreted as a format string.
<string>.
<object>.
#f.
If the restart handler is invoked, cerror returns #f; otherwise, cerror never returns. If cerror returns, the program should take the corrective actions promised in the restart-description. cerror is the standard way to signal correctable errors when no special class of restart condition is required.
break [Function]
break condition Þ falsebreak string #rest arguments Þ falsebreak Þ false
<condition>.
<string>, interpreted as a format string.
<object>, interpreted as format arguments.
#f.
check-type [Function]
check-type value type Þ value
<object>.
<type>.
<object>.
<type-error> if it is not.
abort [Function]
abort
This function is provided as a convenient shortcut. The call is to error, rather than to signal, to guarantee that abort will never return.
default-handler [Open Generic Function]
default-handler condition Þ values
<condition>.
<object>.
<condition> simply returns #f.<serious-condition> invokes an implementation-defined debugger.<warning> prints the warning's message in an implementation-defined way and then returns #f.<restart> signals an error.
restart-query [Open Generic Function]
restart-query restart Þ values
<restart>.
<object>.
This function is designed to be called from a handler, after making a restart and before signaling it. The debugger uses restart-query, for example. There is a default method for <restart> which does nothing.
return-query [Open Generic Function]
return-query condition Þ values
<condition>.
<object>.
return-query should not be called if return-allowed? returns #f. Programs which define condition classes whose recovery protocol allows returning values should ensure that there is an appropriate method for this function defined on or inherited by the condition class.
do-handlers [Function]
do-handlers function Þ false
<function>.
#f.
return-allowed? [Open Generic Function]
return-allowed? condition Þ boolean
<condition>.
<boolean>.
There is a default method for <condition> that returns #f. Programs which define condition classes whose recovery protocol allows returning values should ensure that there is an appropriate method for this function defined on or inherited by the condition class.
return-description [Open Generic Function]
return-description condition Þ description
<condition>.
#f or an instance of <string> or an instance of <restart>.
This description can be a restart, a string, or #f. return-description should not be called if return-allowed? returns #f. If you define your own condition class whose recovery protocol allows returning values, you need to define a method for return-description unless the inherited method is suitable.
condition-format-string [Function]
condition-format-string simple-condition Þ format-string
<simple-error>, <simple-warning>, or <simple-restart>.
<string>.
condition-format-arguments [Function]
condition-format-arguments simple-condition Þ format-args
<simple-error>, <simple-warning>, or <simple-restart>.
<sequence>.
type-error-value [Function]
type-error-value type-error Þ object
<type-error>.
<object>.
type-error-expected-type [Function]
type-error-expected-type type-error Þ type
<type-error>.
<type>.
Generated with Harlequin WebMaker