joomla-framework / http

Joomla Framework Http Package
GNU General Public License v2.0
17 stars 21 forks source link

[2.0] PSR-18 Exception Compliance #38

Closed mbabker closed 3 years ago

mbabker commented 6 years ago

Exceptions thrown within the transports need to implement Psr\Http\Client\ClientExceptionInterface. This is going to require creating new Exception subclasses for the various error cases still using core PHP exceptions to fulfill this contract. As we don't work with Psr\Http\Message\RequestInterface in the transports, use of the two sub-interfaces is not needed.