Changed approach to exception handling in ClassParser