adam-paterson / adam-paterson/ibm-watson-sdk

Update HTTP exceptions

未關閉
#17 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement hacktoberfest
主要語言
PHP
星號
5
分支
0
PR 合併指標
30 天內沒有已合併 PR

描述

We need to replace the `Http\Client\Exception\HttpException` in `IBM\Watson\Core\Client\ExceptionHandler:handle` with a more specific exception.

Watson error responses are usually in the format:

```json
{
"error": "General description of an error.",
"errors": [
{
"message": "Description of a specific constraint violation.",
"path": "The location of the constraint violation."
}
],
"code": 500
}
```

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。