owncloud / ocis-php-sdk

Apache License 2.0
3 stars 1 forks source link

fix: improve handling of OdataError #201

Closed phil-davis closed 5 months ago

phil-davis commented 5 months ago

Issue #200

If API calls return an OdataError object, then find the error code and message in the object, and use it to create and throw the appropriate HTTP error exception, like other code does. So consumers of the SDK can get a consistent type of exception when something goes wrong.

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud