Throws exception if class does not exist