[Top][All Lists]
[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 07:22:22 +0200 |
On 7/11/06, Daishi Kato <address@hidden> wrote:
Hi,
The parser error raised from the ssax egg
does not seem to have a "type" so that
one can catch the exception.
Should it be something like the following?
Daishi
(define (parser-error port msg . specializing-msgs)
(make-composite-condition
(make-property-condition 'ssax)
(make-property-condition 'exn 'message msg 'specializing-msgs
specializing-msgs)))
I'm not sure how to handle `port.'
Usually, a condition of type "exn" has "message" (string),
"location" (symbol, name of the function) and "arguments"
properties. The latter holds a list of arguments (usually the
arguments passed to "error"). I recommend to invoke
m-p-c with "... 'arguments (list port)...", or even add a "port"
property to the ssax condition (that might be better, I'd say).
cheers,
felix