Skip to content

In Ruby, subclass BadStatus to create an exception hierarchy #7253

@murgatroid99

Description

@murgatroid99

The API review noted that handling different statuses by doing control flow based on instance variables is awkward. It would be more user friendly to have a subclass of BadStatus for each status code. This can be done in a backwards compatible way.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions