-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation
Description
概要
https://github.com/kintone/js-sdk/blob/master/packages/rest-api-client/docs/errorHandling.md#kintonerestapierror
公式ドキュメントでは、KintoneRestAPIErrorのプロパティ内でエラーの手がかりになりそうなのは
messageくらいしかありません。
しかし実際にはerrorsというオブジェクトがあって、
この中にはエラーの詳細がかなり詳しく入っています。
エラーハンドリングの際にはいつもこのKintoneRestAPIError#errorsを使うのですが、
なぜドキュメントにはerrorsオブジェクトが明記されてないのでしょうか?
これがないとまともなエラーハンドリングができないので、ぜひドキュメントで言及してください。
ドキュメントに書いてある情報だけでエラーハンドリングしようとすると、
APIを生で叩くほうがマシになってしまいます。
よろしくお願いします。
対象パッケージ
@kintone/rest-api-client
対象バージョン
5.0
再現手順
期待する挙動
ドキュメント内にKintoneRestAPIError#errorsについての詳細が載っている状態
実際の挙動
ドキュメント内にKintoneRestAPIErrorについて触れられていない
環境
環境問わず
tasshi-me
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdocumentationImprovements or additions to documentationImprovements or additions to documentation