示例#1
0
 /// <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;
 }
示例#2
0
 /// <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;
 }
示例#3
0
        /// <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;
        }
示例#4
0
 /// <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;
 }