Пример #1
0
 public Message(string text, string entityText, Entities.Location location, string stackTrace = "", Severity severity = Severity.Error)
 {
     Severity   = severity;
     Text       = text;
     StackTrace = stackTrace;
     EntityText = entityText;
     Location   = location;
 }
Пример #2
0
        /// <summary>
        /// Log an extraction error.
        /// </summary>
        /// <param name="message">The error message.</param>
        /// <param name="entityText">A textual representation of the failed entity.</param>
        /// <param name="location">The location of the error.</param>
        /// <param name="stackTrace">An optional stack trace of the error, or an empty string.</param>
        /// <param name="severity">The severity of the error.</param>
        public void ExtractionError(string message, string entityText, Entities.Location location, string stackTrace = "", Severity severity = Severity.Error)
        {
            var msg = new Message(message, entityText, location, stackTrace, severity);

            ExtractionError(msg);
        }