/// <summary> /// Procesa una excepción /// </summary> private void ProcessException(BlockLogModel parent, ExceptionSentence sentence) { if (string.IsNullOrWhiteSpace(sentence.Message)) { AddError(parent, "Unknown exception"); } else { AddError(parent, sentence.Message); } }
/// <summary> /// Carga los datos de una excepción /// </summary> private BaseSentence LoadExceptionSentence(MLNode rootML) { ExceptionSentence sentence = new ExceptionSentence(); // Asigna las propiedades AssignDefaultProperties(sentence, rootML); if (string.IsNullOrWhiteSpace(rootML.Attributes[TagMessage].Value)) { sentence.Message = rootML.Value.TrimIgnoreNull(); } else { sentence.Message = rootML.Attributes[TagMessage].Value.TrimIgnoreNull(); } // Devuelve la sentencia return(sentence); }