private bool OnScriptError(Exception ex) { if (Error != null) { MySqlScriptErrorEventArgs args = new MySqlScriptErrorEventArgs(ex); Error(this, args); return(args.Ignore); } return(false); }
private bool OnScriptError(Exception ex) { if (Error != null) { MySqlScriptErrorEventArgs args = new MySqlScriptErrorEventArgs(ex); Error(this, args); return args.Ignore; } return false; }
static void ScriptErrorHandler(object sender, MySqlScriptErrorEventArgs args) { Console.Error.WriteLine("\n\n Error occured! "); Console.Error.WriteLine(" Last successfully executed statement: " + lastExecutedStatement); Console.Error.WriteLine(" Exception: " + args.Exception.Message); throw new SQLExecuteException(); }