コード例 #1
0
 public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute XAttribute, Exception Exception)
 {
     if (ReaderLog != null)
     {
         ReaderLog.WriteException(Element, XAttribute, Exception);
     }
 }
コード例 #2
0
 public static void WriteToLogUnexpectedEnumValue(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute XAttribute, Type EnumType)
 {
     if (ReaderLog != null)
     {
         ReaderLog.WriteUnexpectedEnumValue(Element, XAttribute, EnumType);
     }
 }
コード例 #3
0
 public static void WriteToLog(IXmlLinqReaderLog ReaderLog, XElement Element, XAttribute XAttribute, XmlLinqReaderLogInfoType InfoType)
 {
     if (ReaderLog != null)
     {
         ReaderLog.Write(Element, XAttribute, null, (int)InfoType);
     }
 }
コード例 #4
0
        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);
        }
コード例 #5
0
 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);
 }
コード例 #6
0
 public static void WriteToLog(IXmlLinqReaderLog ReaderLog, string Text, bool Critical)
 {
     WriteToLog(ReaderLog, null, (XAttribute)null, Text, Critical);
 }
コード例 #7
0
 public static bool IsThrowException(IXmlLinqReaderLog XmlReaderLog) { return XmlReaderLog == null || !XmlReaderLog.ContinueOnException; }