exceptions: Export constructor and predicate for '&quit-exception'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 18 Jan 2020 22:33:01 +0000 (23:33 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sat, 18 Jan 2020 22:33:01 +0000 (23:33 +0100)
* module/ice-9/exceptions.scm: Re-export '&quit-exception' and export
'make-quit-exception' and 'quit-exception?'.
(quit-exception?): New procedure.

module/ice-9/exceptions.scm

index 3e0b8ccdc5f7c0c13020f3398f19eb3dbc364ade..143e7aa3efa29923f33e4fc41d3b1f0bfdaa65f1 100644 (file)
@@ -37,6 +37,7 @@
 
                &error
                &programming-error
+               &quit-exception
                &non-continuable
 
                raise-exception
             &external-error
            make-external-error
            external-error?
-       
+
+            make-quit-exception
+            quit-exception?
+
             make-programming-error
            programming-error?
 
   (record-constructor &exception-with-kind-and-args))
 (define make-quit-exception
   (record-constructor &quit-exception))
+(define quit-exception?
+  (exception-predicate &quit-exception))
 
 (define (default-guile-exception-converter key args)
   (make-exception (make-error)