Patch #1403
closedImprove Sender.java to use nested exceptions
0%
Description
SourceForge user: vocaro
In Sender.java, nested exceptions are not used. This means that the exception that caused the problem is tossed out, making diagnosis difficult.
This patch improves the exception handling in Sender.java so that it propagates the original exception as a nested exception.
There may be other places in Saxon that need this improvement, but Sender.java is the one that was affecting me.
Files
Updated by Anonymous almost 16 years ago
SourceForge user: mhkay
Thanks, I'll incorporate these. There's one I'm not quite sure about: the common case of an XML parser error around line 416. I'm not sure it's right to both include the nested exception and append its message. The standard error listener takes care of this by only appending the message from the nested exception if it's not already there in the primary message, but it still feels questionable.
Updated by Anonymous almost 16 years ago
SourceForge user: nobody
"I'm not sure it's right to both include the nested exception and append its message."
If it were me, I would remove the appending of the message and leave the nesting of the exception.
Updated by Michael Kay over 11 years ago
- Status changed from New to Closed
I think this problem was fixed in antiquity,
Please register to edit this issue