Skip to content

Conversation

@hani-i
Copy link

@hani-i hani-i commented Nov 4, 2024

No description provided.

throw new IllegalArgumentException("[ERROR] 로또 번호는 6개여야 합니다.");
}
if (new HashSet<>(numbers).size() != numbers.size()) {
throw new IllegalArgumentException("[ERROR] 로또 번호에 중복된 숫자가 있습니다.");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

에러 메시지는 error 패키지에서 따로 관리하면 더 좋을 것 같습니다.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 그러네요!! 감사합니다😊

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

Successfully merging this pull request may close these issues.

2 participants