srfi-34.scm 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. ;;; srfi-34.scm --- Exception handling for programs
  2. ;; Copyright (C) 2003,2006,2008-2010,2019-2020
  3. ;; Free Software Foundation, Inc.
  4. ;;
  5. ;; This library is free software; you can redistribute it and/or
  6. ;; modify it under the terms of the GNU Lesser General Public
  7. ;; License as published by the Free Software Foundation; either
  8. ;; version 3 of the License, or (at your option) any later version.
  9. ;;
  10. ;; This library is distributed in the hope that it will be useful,
  11. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. ;; Lesser General Public License for more details.
  14. ;;
  15. ;; You should have received a copy of the GNU Lesser General Public
  16. ;; License along with this library; if not, write to the Free Software
  17. ;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  18. ;;; Author: Neil Jerram <neil@ossau.uklinux.net>
  19. ;;; Commentary:
  20. ;; This is an implementation of SRFI-34: Exception Handling for
  21. ;; Programs. For documentation please see the SRFI-34 document; this
  22. ;; module is not yet documented at all in the Guile manual.
  23. ;;; Code:
  24. (define-module (srfi srfi-34)
  25. #:use-module ((ice-9 exceptions) #:select (guard))
  26. #:re-export (with-exception-handler
  27. (raise-exception . raise)
  28. guard)
  29. #:re-export-and-replace ((raise-exception . raise)))
  30. (cond-expand-provide (current-module) '(srfi-34))