Closed
Description
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.