From d47061db231cdfdd018b9b57cb985d85484e7b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sat, 18 Jan 2020 23:33:01 +0100 Subject: [PATCH] exceptions: Export constructor and predicate for '&quit-exception'. * 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 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module/ice-9/exceptions.scm b/module/ice-9/exceptions.scm index 3e0b8ccdc..143e7aa3e 100644 --- a/module/ice-9/exceptions.scm +++ b/module/ice-9/exceptions.scm @@ -37,6 +37,7 @@ &error &programming-error + &quit-exception &non-continuable raise-exception @@ -58,7 +59,10 @@ &external-error make-external-error external-error? - + + make-quit-exception + quit-exception? + make-programming-error programming-error? @@ -173,6 +177,8 @@ (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)