All Questions
Tagged with exception-handling or exceptions
1 questions from the last 30 days
5
votes
5
answers
607
views
Is it good practice to check exception messages in unit tests? [duplicate]
Imagine I have a function like this (written in Java):
void sayHello(String firstName, String lastName) {
if (firstName == null) {
throw new IllegalArgumentException("first name is ...