Skip to content

Clear exception usage in Plugins #34

Closed
@sagikazarmark

Description

@sagikazarmark
Q A
Bug? yes
New Feature? no
Version 1.1-

Actual Behavior

Plugin implementations only accept Http\Client\Exception instances in their rejection handler (here and here) while there is no such limitation in the promise spec or the RejectedPromise.

Expected Behavior

Plugins should accept any kind of exceptions and handle only which are acceptable for them and rethrow the rest. This is not a breaking change since we just need to widen the accepted exception types in the plugins.

Steps to Reproduce

See #33

Possible Solutions

As said, widen the range of accepted exception types.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions