New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES2022: Error Cause #1714
Comments
他にも文中にこういうケースがないかは見つけないといけない。 |
@himanoa さんに担当してもらう。 入れること自体(Error Cause自体の説明とPromiseを活用するなどでの利用)は多分そこまで難しくないのですが、 エラーとデバッグの中に入れてしまうか、もうちょっとセクションを整理して再構成する(スタックトレースをErrorあたりとか前の方に持ってくる)などの選択肢がありそうな気はします。 あとは、Error Cause自体をシンプルに意味ある説明をしようとすると、re-throwになる気がしてて、 |
Error Causeの表示を対応してる例 |
* feat: add a `error-cause` section to `error-try-catch` See. #1714 * chore: add a error-cause to `error-try-catch` conclusion section * chore: Use cause property in ajaxapp/promise example codes * chore: access to cause property in `Error cause` section's example code * refactor: Exec `npm run textlint:fix` * chore: align with other heading expressions * chore: change from active form to passive form See. #1732 (comment) Co-authored-by: azu <azu@users.noreply.github.com> * chore: add conjunction Co-authored-by: Suguru Inatomi <suguru.inatomi@gmail.com> * chore: 表記ゆれの統一(送出 -> 投げられる) Co-authored-by: azu <azu@users.noreply.github.com> * chore: cut out a example code * fix: remove unnecessary console.error * fix: Error Causeの説明をより丁寧にする * fix: remove logging cause property * fix: exec `npm run textlint:fix` * fix: broken test Co-authored-by: azu <azu@users.noreply.github.com> * chore: Remove empty lines Co-authored-by: azu <azu@users.noreply.github.com> * fix: add cause description * fix: use Number.parseInt instead of parseInt Co-authored-by: azu <azu@users.noreply.github.com> * chore: change function definition order safeParseInt and sumNumStrings --------- Co-authored-by: azu <azu@users.noreply.github.com> Co-authored-by: Suguru Inatomi <suguru.inatomi@gmail.com>
ここで対応しないとしていたけど、再検討する。
具体的には次の場所では、Error causeを使った方が明らかに良いので、ここで使えるように基礎文法で紹介したい。
Promiseを活用する · JavaScript Primer #jsprimer
TODO
課題として、Error Causeの効果(スタックトレースの話とか)をどうやって表現するかという問題がありそう
The text was updated successfully, but these errors were encountered: