chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] ssax parser error


From: felix winkelmann
Subject: Re: [Chicken-users] ssax parser error
Date: Tue, 11 Jul 2006 08:42:40 +0200

On 7/11/06, Daishi Kato <address@hidden> wrote:


Hm, I'm not yet used to the exceptions.
How about this?
If OK, do you want me to commit it?
Or somebody (a first commiter?) should do it.
Daishi

--- ssax-core.scm       (revision 1205)
+++ ssax-core.scm       (working copy)
@@ -1599,7 +1599,10 @@
 ; Normally the definition of parser-error is to be provided by the user.
 (run-test
  (define (parser-error port msg . specializing-msgs)
-   (apply error (cons msg specializing-msgs)))
+   (signal
+    (make-composite-condition
+     (make-property-condition 'ssax 'port port)
+     (make-property-condition 'exn 'message (apply string-append msg 
specializing-msgs)))))
 )

This looks fine, please commit it.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]