[previous] [up] [next]     [contents] [index]
Next: Inferred Value Names Up: Errors Previous: Application Type Errors

Syntax Errors

(raise-syntax-error name message [expr subexpr]) creates an exn:syntax value and raises it as an exception. Macros use this procedure to report macro syntax errors. The name argument is a symbol that is used as the source syntactic form's name in the error message. The message string is used as the main body of the error message. The expr argument is the erroneous source S-expression. The subsexpr argument is an S-expression within expr that more precisely locates the error.



PLT