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

Add InvalidInput error when ArithmeticException is thrown when resolving expression #1190

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

manheychiu
Copy link
Contributor

Currently, when an ArithmeticException is thrown when resolving expression, we are adding a TemplateError with ErrorReason.EXCEPTION to the interpreter.

Since ArithmeticException is caused by users' input errors, this PR changes to add a TemplateError with ErrorReason.INVALID_INPUT when ArithmeticException is caught.

@manheychiu manheychiu merged commit 655d310 into master Jun 5, 2024
5 checks passed
@manheychiu manheychiu deleted the handle-ArithmeticException branch June 5, 2024 23:05
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