Fixed wrong exception type.
Merge branch 'master' of github.com:antoan-angelov/Core-Java-Reapply