/// <summary> /// 写入异常信息后抛出异常。 /// </summary> /// <param name="source">错误的源。</param> /// <param name="message">描述错误的消息。</param> public static void ThrowException(string source, string message) { Logger.ThrowException(source, new Exception(message)); }