throw exception if user tries to inject a class which isn't injectable