From: Oleg T. <he...@us...> - 2004-10-16 21:01:46
|
Update of /cvsroot/mvp-xml/XInclude/v1/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv808/v1/src Modified Files: XIncludeException.cs XIncludingReader.cs Log Message: Renamed SyntaxError. XInclude Test Suite stuff. Index: XIncludeException.cs =================================================================== RCS file: /cvsroot/mvp-xml/XInclude/v1/src/XIncludeException.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- XIncludeException.cs 14 Oct 2004 13:47:07 -0000 1.3 +++ XIncludeException.cs 16 Oct 2004 21:01:37 -0000 1.4 @@ -84,8 +84,8 @@ /// <summary> /// XInclude syntax error exception. /// </summary> - public class SyntaxError : FatalException { - public SyntaxError(string message) : base(message) {} + public class XIncludeSyntaxError : FatalException { + public XIncludeSyntaxError(string message) : base(message) {} } /// <summary> Index: XIncludingReader.cs =================================================================== RCS file: /cvsroot/mvp-xml/XInclude/v1/src/XIncludingReader.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- XIncludingReader.cs 14 Oct 2004 13:47:07 -0000 1.7 +++ XIncludingReader.cs 16 Oct 2004 21:01:37 -0000 1.8 @@ -600,13 +600,13 @@ IXmlLineInfo li = _reader as IXmlLineInfo; if (li != null && li.HasLineInfo()) { - throw new SyntaxError( + throw new XIncludeSyntaxError( SR.GetString("FallbackNotChildOfIncludeLong", _reader.BaseURI.ToString(), li.LineNumber, li.LinePosition)); } else - throw new SyntaxError( + throw new XIncludeSyntaxError( SR.GetString("FallbackNotChildOfInclude", _reader.BaseURI.ToString())); } @@ -976,12 +976,12 @@ IXmlLineInfo li = _reader as IXmlLineInfo; if (li != null && li.HasLineInfo()) { - throw new SyntaxError(SR.GetString("IncludeChildOfIncludeLong", + throw new XIncludeSyntaxError(SR.GetString("IncludeChildOfIncludeLong", BaseURI.ToString(), li.LineNumber, li.LinePosition)); } else - throw new SyntaxError(SR.GetString("IncludeChildOfInclude", + throw new XIncludeSyntaxError(SR.GetString("IncludeChildOfInclude", BaseURI.ToString())); } if (IsFallbackElement(_reader)) @@ -993,12 +993,12 @@ if (li != null && li.HasLineInfo()) { //Two xi:fallback - throw new SyntaxError(SR.GetString("TwoFallbacksLong", + throw new XIncludeSyntaxError(SR.GetString("TwoFallbacksLong", BaseURI.ToString(), li.LineNumber, li.LinePosition)); } else - throw new SyntaxError(SR.GetString("TwoFallbacks", BaseURI.ToString())); + throw new XIncludeSyntaxError(SR.GetString("TwoFallbacks", BaseURI.ToString())); } if (_reader.IsEmptyElement) { @@ -1049,12 +1049,12 @@ IXmlLineInfo li = _reader as IXmlLineInfo; if (li != null && li.HasLineInfo()) { - throw new SyntaxError(SR.GetString("IncludeChildOfIncludeLong", + throw new XIncludeSyntaxError(SR.GetString("IncludeChildOfIncludeLong", _reader.BaseURI.ToString(), li.LineNumber, li.LinePosition)); } else - throw new SyntaxError(SR.GetString("IncludeChildOfInclude", + throw new XIncludeSyntaxError(SR.GetString("IncludeChildOfInclude", _reader.BaseURI.ToString())); } if (IsFallbackElement(_reader)) @@ -1066,12 +1066,12 @@ IXmlLineInfo li = _reader as IXmlLineInfo; if (li != null && li.HasLineInfo()) { - throw new SyntaxError(SR.GetString("TwoFallbacksLong", + throw new XIncludeSyntaxError(SR.GetString("TwoFallbacksLong", _reader.BaseURI.ToString(), li.LineNumber, li.LinePosition)); } else - throw new SyntaxError(SR.GetString("TwoFallbacks", _reader.BaseURI.ToString())); + throw new XIncludeSyntaxError(SR.GetString("TwoFallbacks", _reader.BaseURI.ToString())); } else { |