Fix stupid exception handling
This commit is contained in:
parent
64604b9bf5
commit
0a5ac00e5b
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ public class PersonService {
|
||||||
person.addHobby(Hobbies.HOBBY4);
|
person.addHobby(Hobbies.HOBBY4);
|
||||||
person.addHobby(Hobbies.HOBBY5);
|
person.addHobby(Hobbies.HOBBY5);
|
||||||
person.addHobby(Hobbies.HOBBY6);
|
person.addHobby(Hobbies.HOBBY6);
|
||||||
} catch (Exception e) {
|
} catch (NoFreeTimeException e) {
|
||||||
System.err.println("NoFreeTimeException");
|
System.err.println("NoFreeTimeException");
|
||||||
}
|
}
|
||||||
System.out.println(person);
|
System.out.println(person);
|
||||||
|
|
Loading…
Reference in a new issue