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); }
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); }