Closed Chris00 closed 10 years ago
P.S. I am on the verge of wiping out Expected_Leaf
and thus also Error.Data
... I had already to remore error reporting in some cases because some feeds contain, say, <description></description>
. Please let me know what you think!
See #35.
Close by #35.
I'd like to discuss about error reporting.
Expected
are more for human consumption and not so much for post processing. If I am right, it would be better to use strings (or at least to attach a pretty printing function) so they display readably in the shell when an uncaught exception occurs.Invalid_argument
but I think it would be better to use aSyndic
error (and possibly give some context when they fail).Expected_Leaf
should exist at all. After all, the spec mandates the tag to be present but its content may be empty! AFAIU, even the person construct allow, say,<name></name>
.