Find up-to-date documentation for the only_throw_errors linter rule at https://dart.dev/lints/only_throw_errors.
only_throw_errors