Ануфриев - Лабораторная работа #1

That's not a good idea to check exception message. Better to check the type of exception, see, how others did it with `IllegalTypeException`.