예제 #1
0
        public static bool WriteNThrow(Exception ex)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.Append(ex);
            }
            else
            {
                ChoTrace.Error(ex.ToString());
            }
            throw new ChoApplicationException("Failed to write.", ex);
        }
예제 #2
0
        public static bool Write(Exception ex)
        {
            IChoProfile profile = GetDefaultContext(new StackFrame(1));

            if (profile != null)
            {
                profile.Append(ex);
            }
            else
            {
                ChoTrace.Error(ex.ToString());
            }
            return(true);
        }