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

Syntax Errors

(raise-syntax-error name-symbol message-string [expr sub-expr]) creates an exn:syntax value and raises it as an exception. Macros use this procedure to report macro syntax errors. The name-symbol argument 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 optional expr argument is the erroneous source S-expression. The optional sub-expr argument is an S-expression within expr that more precisely locates the error.



PLT