public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute XAttribute, Exception Exception) { if (ReaderLog != null) { ReaderLog.WriteException(Element, XAttribute, Exception); } }
public static void WriteToLogUnexpectedEnumValue(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute XAttribute, Type EnumType) { if (ReaderLog != null) { ReaderLog.WriteUnexpectedEnumValue(Element, XAttribute, EnumType); } }
public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute XAttribute, XmlLinqReaderLogInfoType InfoType) { if (ReaderLog != null) { ReaderLog.Write(Element, XAttribute, null, (int)InfoType); } }
public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute Attribute, string Text, bool Critical) { if (ReaderLog != null) { ReaderLog.Write(Element, Attribute, Text, (int)XmlLinqReaderLogInfoType.UnknownError); } if (Critical && (ReaderLog == null || !ReaderLog.ContinueOnException)) throw new XmlLinqReaderException(Text); }
public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, string AttributeName, string Text, bool Critical) { WriteToLog(ReaderLog, Element, AttributeName != null ? Element.Attribute(AttributeName) : null, Text, Critical); }
public static void WriteToLog(IXmlLinqReaderLog ReaderLog, string Text, bool Critical) { WriteToLog(ReaderLog, null, (XAttribute)null, Text, Critical); }
public static bool IsThrowException(IXmlLinqReaderLog XmlReaderLog) { return XmlReaderLog == null || !XmlReaderLog.ContinueOnException; }