예제 #1
0
        public CustomException(string message, Exception innerException)
            : base(message, innerException)
        {
            HnztcSysClient sysClient = new HnztcSysClient();

            TygaSoft.Services.HnztcSysService.SyslogInfo sysLogInfo = new Services.HnztcSysService.SyslogInfo();
            sysLogInfo.AppName         = "海南直通车";
            sysLogInfo.MethodName      = string.Format("{0}", base.TargetSite == null ? "" : base.TargetSite.Name);
            sysLogInfo.Message         = string.Format("{0}{1}{2}", message, base.Source, base.StackTrace);
            sysLogInfo.LastUpdatedDate = DateTime.Now;
            sysClient.InsertSysLog(sysLogInfo);
        }
예제 #2
0
        public CustomException(string message)
            : base(message)
        {
            HnztcSysClient sysClient = new HnztcSysClient();

            TygaSoft.Services.HnztcSysService.SyslogInfo sysLogInfo = new Services.HnztcSysService.SyslogInfo();
            sysLogInfo.AppName         = "海南直通车后台系统";
            sysLogInfo.MethodName      = "CustomException";
            sysLogInfo.Message         = message;
            sysLogInfo.LastUpdatedDate = DateTime.Now;
            sysClient.InsertSysLog(sysLogInfo);
        }
예제 #3
0
        public CustomException(string message, Exception innerException)
            : base(message, innerException)
        {
            HnztcSysClient sysClient = new HnztcSysClient();

            TygaSoft.Services.HnztcSysService.SyslogInfo sysLogInfo = new Services.HnztcSysService.SyslogInfo();
            sysLogInfo.AppName    = "海南直通车后台系统";
            sysLogInfo.MethodName = innerException == null ? "" : innerException.TargetSite.Name;
            sysLogInfo.Message    = message;
            if (innerException != null)
            {
                sysLogInfo.Message += innerException.Source + innerException.StackTrace;
            }
            sysLogInfo.LastUpdatedDate = DateTime.Now;
            sysClient.InsertSysLog(sysLogInfo);
        }