-
-
Notifications
You must be signed in to change notification settings - Fork 390
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
base: dev/feature
Are you sure you want to change the base?
RuntimeErrorCatcher + Runtime Elements #7823
Conversation
There was a problem hiding this 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
src/main/java/ch/njol/skript/test/runner/ExprRuntimeErrors.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/log/runtime/RuntimeErrorManager.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking better
src/main/java/org/skriptlang/skript/log/runtime/RuntimeErrorCatcher.java
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/log/runtime/RuntimeErrorCatcher.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/log/runtime/RuntimeErrorCatcher.java
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/log/runtime/RuntimeErrorCatcher.java
Outdated
Show resolved
Hide resolved
src/main/java/org/skriptlang/skript/log/runtime/RuntimeErrorCatcher.java
Show resolved
Hide resolved
There was a problem hiding this 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
Description
This PR aims to add a
RuntimeErrorCatcher
allowingRuntimeErrors
printed fromRuntimeErrorManager
to be caught and logged.With this addition, allows for a
SecCatchErrors
andExprCaughtErrors
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 waySecParse
could maintain it's behavior.Target Minecraft Versions: any
Requirements: none
Related Issues: #7766