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

Day 1 の記事で orElseThrow の内部で例外をスローしている #10

Open
os1ma opened this issue Dec 16, 2020 · 0 comments
Open

Comments

@os1ma
Copy link
Owner

os1ma commented Dec 16, 2020

該当箇所

https://qiita.com/os1ma/items/630e2d7fb5d744bbdf8a#%E7%8F%BE%E6%99%82%E7%82%B9%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%89

                    .orElseThrow(() -> {
                        throw new IllegalArgumentException("Player not exist. playerId = " + playerId);
                    });

修正内容

本来は例外を return すべき

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