public GDataRedirectException(string msg, WebResponse response) : base(msg) { this.webResponse = response; if (response != null && response.Headers != null) { this.redirectLocation = response.Headers["Location"]; } }