mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
* XPath2Expression.cs, XPathSequence.cs : Implemented GroupExpr.Evaluate() [union/intersect/except]. Fixed incorrect iterator input for DescendantExpr.Evaluate(). MinusExpr is (already) implemented not to be evaluated. * XQueryExpression.cs : PI name and nameExpr could be implemented. * XQueryFunction.cs : UserFunctionCallExpr.Invoke() should not be invoked. * XQueryFunctionCliImpl.cs : Implemented count(), doc(). Halfly implemented trace(). * XmlQueryException.cs : Serializable. svn path=/trunk/mcs/; revision=33111
113 lines
3.0 KiB
C#
Executable File
113 lines
3.0 KiB
C#
Executable File
//
|
|
// System.Xml.Query.XmlQueryException
|
|
//
|
|
// Author:
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// Copyright (C) Tim Coleman, 2003
|
|
//
|
|
|
|
//
|
|
// Permission is hereby granted, free of charge, to any person obtaining
|
|
// a copy of this software and associated documentation files (the
|
|
// "Software"), to deal in the Software without restriction, including
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
|
// permit persons to whom the Software is furnished to do so, subject to
|
|
// the following conditions:
|
|
//
|
|
// The above copyright notice and this permission notice shall be
|
|
// included in all copies or substantial portions of the Software.
|
|
//
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
//
|
|
|
|
#if NET_2_0
|
|
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace System.Xml.Query
|
|
{
|
|
[Serializable]
|
|
public class XmlQueryException : SystemException
|
|
{
|
|
#region Constructors
|
|
|
|
[MonoTODO]
|
|
protected XmlQueryException (SerializationInfo info, StreamingContext context)
|
|
: base (info, context)
|
|
{
|
|
throw new NotImplementedException ();
|
|
}
|
|
|
|
public XmlQueryException ()
|
|
: base ("An XML Query Exception has occurred.")
|
|
{
|
|
}
|
|
|
|
public XmlQueryException (string res)
|
|
: this (res, null, null, null)
|
|
{
|
|
}
|
|
|
|
public XmlQueryException (string resource, Exception exception)
|
|
: this (resource, null, null, exception)
|
|
{
|
|
}
|
|
|
|
internal XmlQueryException (string message, IXmlLineInfo lineInfo, string sourceUri, Exception innerException)
|
|
: base (BuildMessage (message, lineInfo, sourceUri), innerException)
|
|
{
|
|
}
|
|
|
|
static string BuildMessage (string message, IXmlLineInfo li, string sourceUri)
|
|
{
|
|
if (li != null && li.HasLineInfo ()) {
|
|
message = String.Format ("{0}. Location: {1} ({2}, {3}).", message, sourceUri, li.LineNumber, li.LinePosition);
|
|
}
|
|
else if (sourceUri != null)
|
|
message = String.Format ("{0}. Location: {1}", message, sourceUri);
|
|
return message;
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Properties
|
|
|
|
[MonoTODO]
|
|
public int LineNumber {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public int LinePosition {
|
|
get { throw new NotImplementedException (); }
|
|
}
|
|
|
|
[MonoTODO]
|
|
public string SourceUri {
|
|
get { throw new NotImplementedException(); }
|
|
}
|
|
|
|
#endregion // Properties
|
|
|
|
#region Methods
|
|
|
|
[MonoTODO]
|
|
public override void GetObjectData (SerializationInfo info, StreamingContext context)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
#endregion // Methods
|
|
}
|
|
}
|
|
|
|
#endif // NET_2_0
|