OnAnalysisException ( Exception oException ) { Debug.Assert(oException != null); AssertValid(); if (oException is PartialNetworkException) { // Ask the user whether he wants to import the partial network. PartialNetworkException oPartialNetworkException = (PartialNetworkException)oException; PartialNetworkDialog oPartialNetworkDialog = new PartialNetworkDialog(oPartialNetworkException, m_oHttpNetworkAnalyzer.ExceptionToMessage( oPartialNetworkException.RequestStatistics. LastUnexpectedException) ); if (oPartialNetworkDialog.ShowDialog() == DialogResult.Yes) { OnAnalysisSuccess(oPartialNetworkException.PartialNetwork); } } else { this.ShowWarning( "The network couldn't be obtained. Details:" + "\r\n\r\n" + m_oHttpNetworkAnalyzer.ExceptionToMessage(oException) ); } }
OnAnalysisException ( Exception oException ) { Debug.Assert(oException != null); AssertValid(); if (oException is PartialNetworkException) { // Ask the user whether he wants to import the partial network. PartialNetworkException oPartialNetworkException = (PartialNetworkException)oException; PartialNetworkDialog oPartialNetworkDialog = new PartialNetworkDialog(oPartialNetworkException, m_oHttpNetworkAnalyzer.ExceptionToMessage( oPartialNetworkException.RequestStatistics. LastUnexpectedException) ); if (oPartialNetworkDialog.ShowDialog() == DialogResult.Yes) { OnAnalysisSuccess(oPartialNetworkException.PartialNetwork); } } else { this.ShowWarning( "The network couldn't be obtained. Details:" + "\r\n\r\n" + m_oHttpNetworkAnalyzer.ExceptionToMessage(oException) ); } }
OnAnalysisException ( Exception oException ) { Debug.Assert(oException != null); AssertValid(); if (oException is PartialNetworkException) { // Ask the user whether he wants to import the partial network. PartialNetworkException oPartialNetworkException = (PartialNetworkException)oException; PartialNetworkDialog oPartialNetworkDialog = new PartialNetworkDialog(oPartialNetworkException, m_oHttpNetworkAnalyzer.ExceptionToMessage( oPartialNetworkException.RequestStatistics. LastUnexpectedException) ); if (oPartialNetworkDialog.ShowDialog() == DialogResult.Yes) { OnAnalysisSuccess(oPartialNetworkException.PartialNetwork); } } else { // TODO: localyze report text this.ShowWarning( "The network couldn't be obtained. If the problem persists please copy the following message "+ "and report it to RCSIR. \r\n\r\n Details:" + "\r\n\r\n" + m_oHttpNetworkAnalyzer.ExceptionToMessage(oException) +"\r\n"+ oException.StackTrace ); } }
OnAnalysisException ( Exception oException ) { Debug.Assert(oException != null); AssertValid(); if (oException is PartialNetworkException) { // Ask the user whether he wants to import the partial network. PartialNetworkException oPartialNetworkException = (PartialNetworkException)oException; PartialNetworkDialog oPartialNetworkDialog = new PartialNetworkDialog(oPartialNetworkException, m_oHttpNetworkAnalyzer.ExceptionToMessage( oPartialNetworkException.RequestStatistics. LastUnexpectedException) ); if (oPartialNetworkDialog.ShowDialog() == DialogResult.Yes) { OnAnalysisSuccess(oPartialNetworkException.PartialNetwork); } } else //if (oException is FacebookAPIException || // oException is KeyNotFoundException) { this.ShowWarning( "The network couldn't be obtained. If the problem persists please copy the following message "+ "and report it to http://socialnetimporter.codeplex.com/discussions. \r\n\r\n Details:" + "\r\n\r\n" + m_oHttpNetworkAnalyzer.ExceptionToMessage(oException) +"\r\n"+ oException.StackTrace ); } //else //{ // this.ShowWarning( // "The network couldn't be obtained. Details:" // + "\r\n\r\n" // + m_oHttpNetworkAnalyzer.ExceptionToMessage(oException) // ); //} }