Project

General

Profile

Actions

Feature #19059

open

Introduce top level `module TimeoutError` for aggregating various timeout error classes.

Added by ioquatix (Samuel Williams) over 1 year ago. Updated about 1 month ago.

Status:
Assigned
Target version:
-
[ruby-core:110303]

Description

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:

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.
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0