Skip to content

RuntimeErrorCatcher + Runtime Elements #7823

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

Open
wants to merge 8 commits into
base: dev/feature
Choose a base branch
from

Conversation

Absolutionism
Copy link
Contributor

@Absolutionism Absolutionism commented Apr 23, 2025

Description

This PR aims to add a RuntimeErrorCatcher allowing RuntimeErrors printed from RuntimeErrorManager to be caught and logged.
With this addition, allows for a SecCatchErrors and ExprCaughtErrors to create code that catches errors, preventing them from being logged into terminal, and accessing the errors that were caught.

In the related issue (by me), I realized that SecParse never ran the code within the section, so I decided to make a new section and expression that way SecParse could maintain it's behavior.


Target Minecraft Versions: any
Requirements: none
Related Issues: #7766

@Absolutionism Absolutionism requested review from sovdeeth and a team as code owners April 23, 2025 01:20
@Absolutionism Absolutionism requested review from APickledWalrus and removed request for a team April 23, 2025 01:20
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

Consider if you want to keep these test-only or make them broadly available

@sovdeeth sovdeeth added the feature Pull request adding a new feature. label Apr 23, 2025
@Absolutionism Absolutionism requested a review from sovdeeth April 24, 2025 01:10
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

looking better

@Absolutionism Absolutionism changed the title RuntimeLogHandler + Runtime Testing Elements RuntimeErrorCatcher + Runtime Elements Apr 24, 2025
@Absolutionism Absolutionism requested a review from sovdeeth April 24, 2025 02:52
Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

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

just a few things

@Absolutionism Absolutionism requested a review from sovdeeth April 24, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request adding a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants