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

feat(#762): Improve Logging and Exception Handling #763

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

volodya-lombrozo
Copy link
Member

@volodya-lombrozo volodya-lombrozo commented Oct 15, 2024

In this PR I imporved logging for dissasembled and assembled files to the following:

Assembling of 'org/eolang/hone/package-info.class' (4Kb) finished successfully.

Moreover, I added several checks to catch exceptions carefully (and added context to them.)

Related to #762.
History:


PR-Codex overview

This PR introduces a size() method to various classes, improves error handling in XmlAnnotation, and updates logging messages in the Assembler and Disassembler classes to include size information.

Detailed summary

  • Added size() method to Representation and XmirRepresentation classes.
  • Implemented size() method in BytecodeRepresentation to return input length.
  • Enhanced logging messages in Assembler and Disassembler to include size.
  • Improved error handling in XmlAnnotation to throw ParsingException on failures.
  • Added XML parsing tests in XmlAnnotationTest for broken XML scenarios.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@volodya-lombrozo
Copy link
Member Author

@yegor256 Could you have a look at this PR, please?

Copy link
Member

@yegor256 yegor256 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@volodya-lombrozo
Copy link
Member Author

@rultor merge

@rultor
Copy link
Contributor

rultor commented Oct 15, 2024

@rultor merge

@volodya-lombrozo OK, I'll try to merge now. You can check the progress of the merge here.

@rultor rultor merged commit f317433 into objectionary:master Oct 15, 2024
11 checks passed
@rultor
Copy link
Contributor

rultor commented Oct 15, 2024

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 7min).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants