/// <summary> /// The build. /// </summary> /// <param name="msg"> /// The msg. /// </param> /// <param name="e"> /// The e. /// </param> /// <returns> /// The <see cref="ErrorReport"/>. /// </returns> public static ErrorReport Build(string msg, Exception e) { var report = new ErrorReport(msg, e); return report; }
/// <summary> /// The build. /// </summary> /// <param name="msg"> /// The msg. /// </param> /// <returns> /// The <see cref="ErrorReport"/>. /// </returns> public static ErrorReport Build(string msg) { var report = new ErrorReport(msg); return report; }
/// <summary> /// The build. /// </summary> /// <param name="msg"> /// The msgs. /// </param> /// <returns> /// The <see cref="ErrorReport"/>. /// </returns> public static ErrorReport Build(IList<string> msg) { var report = new ErrorReport(); foreach (string currentMsg in msg) { report.AddErrorMessage(currentMsg); } return report; }
/// <summary> /// The build. /// </summary> /// <param name="e"> /// The e. /// </param> /// <returns> /// The <see cref="ErrorReport"/>. /// </returns> public static ErrorReport Build(Exception e) { var report = new ErrorReport(e); return report; }