Inheritance: System.Exception
Esempio n. 1
0
 public void Setup(InvalidSQLException exception, bool allowSkip)
 {
     UpgradeInstaller.LogError(exception.InnerException, "[ERROR]\r\n" + "FileName: '" + ((InvalidSQLException)exception).FileName + "'\r\n" + exception.SQL);
     txtError.Text   = "FileName: '" + exception.FileName + "'\r\n" + exception.InnerException.ToString();
     txtSql.Text     = exception.SQL;
     cmdSkip.Visible = allowSkip;
 }
Esempio n. 2
0
 public void Setup(InvalidSQLException exception, bool allowSkip)
 {
     UpgradeInstaller.LogError(exception.InnerException, "[ERROR SCRIPT]\r\n" + exception.SQL);
     txtError.Text   = exception.InnerException.ToString();
     txtSql.Text     = exception.SQL;
     cmdSkip.Visible = allowSkip;
 }
Esempio n. 3
0
		public void Setup(InvalidSQLException exception, bool allowSkip)
		{
			UpgradeInstaller.LogError(exception.InnerException, "[ERROR]\r\n" + "FileName: '" + ((InvalidSQLException)exception).FileName + "'\r\n" + exception.SQL);
			txtError.Text = "FileName: '" + exception.FileName + "'\r\n" + exception.InnerException.ToString();
			txtSql.Text = exception.SQL;
			cmdSkip.Visible = allowSkip;
		}
Esempio n. 4
0
 private static bool SkipScriptPrompt(InvalidSQLException ex)
 {
     //TODO: Allow a way to allow override from parameters
     //This used to popup a dialog and ask for "OK"
     //for now just logging and skipping
     Log.Information(ex.Message);
     return(true);
 }
Esempio n. 5
0
		private static bool SkipScriptPrompt(InvalidSQLException ex)
		{
			var F = new SqlErrorForm();
			F.Setup(ex, true);
			return (F.ShowDialog() == System.Windows.Forms.DialogResult.OK);
		}