Throw an exception if not set instead.