/// <summary> /// 在qqlite控制台输出异常信息 /// </summary> /// <param name="funcName">执行的函数名</param> /// <param name="E">异常</param> private static void PrintErrorMessage(string funcName, SQLiteException E) { string errorString = string.Format("Message:{0}\nSource:{1}\nTargetSite:{2}\nStackTrace:{3}", E.Message, E.Source, E.TargetSite.ToString(), E.StackTrace); QQLog.WriteLog(DbBase.RobotQQ, string.Format("{0} Error Begin", funcName)); QQLog.WriteLog(DbBase.RobotQQ, errorString); QQLog.WriteLog(DbBase.RobotQQ, string.Format("{0} Error End", funcName)); }
/// <summary> /// 异常的处理 /// </summary> /// <param name="e">异常</param> public override void ProcessException(Exception e) { QQLog.PluginDebugLog(this, e); }