low-exception.scm 812 B

12345678910111213141516171819202122232425262728
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Mike Sperber
  3. ; The new LOW-EXCEPTIONS in terms of the old SIGNALS
  4. (define signals:error error)
  5. (define signals:note note)
  6. (define (error who message . irritants)
  7. (apply signals:error message (cons who irritants)))
  8. (define (assertion-violation who message . irritants)
  9. (error who message irritants))
  10. (define (implementation-restriction-violation who message . irritants)
  11. (error who message irritants))
  12. (define (warning who message . irritants)
  13. (apply warn message (cons who irritants)))
  14. (define (syntax-violation who message form . maybe-subform)
  15. (apply syntax-error message (cons message (cons form maybe-subform))))
  16. (define (note who message . irritants)
  17. (apply signals:note message (cons message irritants)))