Ejemplo n.º 1
0
        public DebugModel(Exception ex)
        {
            _logName     = ex.GetType().FullName;
            this.message = ex.Message;
            this.trace   = ex.StackTrace;
            this.hresult = ex.HResult;
            this.source  = ex.Source;
            //this.target = ex.TargetSitetarget;

            if (ex.InnerException != null)
            {
                this.inner = InnerException(ex.InnerException);
            }
        }
Ejemplo n.º 2
0
        public static void Save(string message)
        {
            var model = new DebugModel(message);

            KCore.Stored.Online.Save(model);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Save the details of exception on extern database
        /// </summary>
        /// <param name="ex"></param>
        /// <param name="table"></param>
        public static void Save(Exception ex)
        {
            var model = new DebugModel(ex);

            KCore.Stored.Online.Save(model);
        }