Make ClientInterface
implementations throw an exception on non 2xx HTTP response codes
#228
Milestone
ClientInterface
implementations throw an exception on non 2xx HTTP response codes
#228
The current implementation of
ClientInterface
has several issues:CurlClient
only) aren't handled at allProposing to:
\chobie\Jira\Api\Exception
class:rawResponse
property, which will be populated from the constructorgetRawReponse
method, that will return the above propertygetResponse
method, that will return a json-decoded version of the raw responseThis way a developer will be informed about the error (through an exception being thrown) and can do further error analysis using the
getResponse
method.Also TODO:
Remove code, that is handling errors from the
\chobie\Jira\Api::findVersionByName
method.The text was updated successfully, but these errors were encountered: