Throw exception if not configured