We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Repro steps:
Monetize.parse(1+3i)
Expected:
=> nil
Actual:
ArgumentError: Unable to make a BigDecimal from non-zero imaginary number
Using Ruby 3.0.6.
It might be because Error inherits from StandardError
Error
StandardError
monetize/lib/monetize/errors.rb
Line 2 in e2e2f1f
and is used here
monetize/lib/monetize.rb
Lines 29 to 33 in e2e2f1f
If I do
begin Monetize.parse(1+3i) rescue StandardError pp 'hi there' end
the error is rescued.
The text was updated successfully, but these errors were encountered:
please submit a PR for consideration
Sorry, something went wrong.
No branches or pull requests
Repro steps:
Expected:
Actual:
Using Ruby 3.0.6.
It might be because
Error
inherits fromStandardError
monetize/lib/monetize/errors.rb
Line 2 in e2e2f1f
and is used here
monetize/lib/monetize.rb
Lines 29 to 33 in e2e2f1f
If I do
the error is rescued.
The text was updated successfully, but these errors were encountered: