Inheritance: System.Exception
Ejemplo 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;
 }
Ejemplo 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;
 }
Ejemplo 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;
		}
Ejemplo 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);
 }
Ejemplo 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);
		}