Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Challenges with Separating Error Messages and Exceptions in Saxon Library #205

Open
volodya-lombrozo opened this issue Jun 2, 2023 · 1 comment
Labels

Comments

@volodya-lombrozo
Copy link
Contributor

Not so long ago, we encountered the following problem: objectionary/eo#2114, which was caused by strange behaviour of the <message> element. The issue lies in the separation of the exception caused by net.sf.saxon.expr.instruct.TerminationException and the message produced by the <message> element. In the logs, they appear separately: the <message> body is printed before the java exception is thrown, and quite often, it's difficult to connect them to each other.

Expected behavior: The error message (<message> body) should be included in the java exception message. In other words, when the java exception is thrown, we want to see the original reason that was added to the <message> body.

Currently, we have to search for them in the logs and attempt to connect them.
It seems that this is a well-known issue in the Saxon library:

@yegor256
Copy link
Member

yegor256 commented Jun 2, 2023

@volodya-lombrozo it's a known problem, but thanks for reporting it. If you are willing to contribute with a PR, you are welcome. Otherwise, I don't know how to fix it :( Let's keep it open.

@yegor256 yegor256 added the bug label Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants