[ruby-core:121217] [Ruby master Feature#19059] Introduce top level `module TimeoutError` for aggregating various timeout error classes.
From:
"ioquatix (Samuel Williams) via ruby-core" <ruby-core@...>
Date:
2025-03-02 22:20:32 UTC
List:
ruby-core #121217
Issue #19059 has been updated by ioquatix (Samuel Williams).
Status changed from Assigned to Closed
It is unlikely that Ruby will adopt this, so I am going to close it.
----------------------------------------
Feature #19059: Introduce top level `module TimeoutError` for aggregating various timeout error classes.
https://bugs.ruby-lang.org/issues/19059#change-112158
* Author: ioquatix (Samuel Williams)
* Status: Closed
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
This proposal was originally part of <https://bugs.ruby-lang.org/issues/18630> but was removed because we could not decide on the name.
Introduce the following:
```ruby
module TimeoutError
end
IO::TimeoutError.include(TimeoutError)
Regexp::TimeoutError.include(TimeoutError)
# Maybe?
Timeout::Error.include(TimeoutError)
```
It may be easier for users.
This was discussed before with the following conclusion:
- Top level `TimeoutError` is available.
- Using a module for a `TimeoutError` may not be consistent with other top level `class #{thing}Error`.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/