Skip to content
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

エラーハンドリングを見直したい #8

Closed
zdogma opened this issue Feb 22, 2017 · 1 comment
Closed

エラーハンドリングを見直したい #8

zdogma opened this issue Feb 22, 2017 · 1 comment

Comments

@zdogma
Copy link
Owner

zdogma commented Feb 22, 2017

#6

例外の作法

なんつっても例外を握りつぶさないってとこですね。
こちらも参照してみてください。
https://ez-net.jp/article/B2/cwtBwURB/pp3ZiIOQz2Cc/
Result型でのError表現などにも触れられています。

Result型使いたいときは
https://github.com/antitypical/Result
これが良いです。
@zdogma
Copy link
Owner Author

zdogma commented Feb 22, 2017

今回のプロダクトにおいて Result 型を検討してみましたが、いわゆる Either 型が適する箇所が現状はない(基本クライアントのみで動作するため、正常系と異常系の区分が明確)と判断したため、一旦この issue 自体は close します。

@zdogma zdogma closed this as completed Feb 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant