Throw exception if requested gateway is invalid