-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Int64#parse* method docs should declare what exceptions they throw #32383
Comments
It would be easier to use and more efficient to provide |
This is from https://github.com/dart-lang/fixnum ? |
i only intended this issue to be about fixing the docs, so the following will be slightly off topic: if one were to redesign the interface, it should probably work like
double.parse('e10', (_) => 1.23) is less readable than int.parse('e10', onError: (_) => 123) if redesigning the interface is seriously on the table, let's spin off a separate issue. |
i moved this issue to dart-lang/core#153 |
Int64#parse{Hex, Int, Radix}
apparently throwFormatException
.this should be declared in their docs so that callers can narrow a surrounding try-catch
to just the correct exception type.
The text was updated successfully, but these errors were encountered: