mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
102 lines
2.5 KiB
C#
102 lines
2.5 KiB
C#
//------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//------------------------------------------------------------
|
|
namespace System.ServiceModel.Dispatcher
|
|
{
|
|
using System;
|
|
using System.Xml;
|
|
using System.Xml.XPath;
|
|
|
|
internal enum QueryProcessingError
|
|
{
|
|
None,
|
|
Unexpected,
|
|
TypeMismatch,
|
|
UnsupportedXmlNodeType,
|
|
NodeCountMaxExceeded,
|
|
InvalidXmlAttributes,
|
|
InvalidNavigatorPosition,
|
|
NotAtomized,
|
|
NotSupported,
|
|
InvalidBodyAccess,
|
|
InvalidNamespacePrefix
|
|
}
|
|
|
|
internal class QueryProcessingException : XPathException
|
|
{
|
|
QueryProcessingError error;
|
|
|
|
internal QueryProcessingException(QueryProcessingError error, string message) : base(message, null)
|
|
{
|
|
this.error = error;
|
|
}
|
|
|
|
internal QueryProcessingException(QueryProcessingError error) : this(error, null)
|
|
{
|
|
this.error = error;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return this.error.ToString();
|
|
}
|
|
}
|
|
|
|
internal enum QueryCompileError
|
|
{
|
|
None,
|
|
General,
|
|
CouldNotParseExpression,
|
|
UnexpectedToken,
|
|
UnsupportedOperator,
|
|
UnsupportedAxis,
|
|
UnsupportedFunction,
|
|
UnsupportedNodeTest,
|
|
UnsupportedExpression,
|
|
AbsolutePathRequired,
|
|
InvalidNCName,
|
|
InvalidVariable,
|
|
InvalidNumber,
|
|
InvalidLiteral,
|
|
InvalidOperatorName,
|
|
InvalidNodeType,
|
|
InvalidExpression,
|
|
InvalidFunction,
|
|
InvalidLocationPath,
|
|
InvalidLocationStep,
|
|
InvalidAxisSpecifier,
|
|
InvalidNodeTest,
|
|
InvalidPredicate,
|
|
InvalidComparison,
|
|
InvalidOrdinal,
|
|
InvalidType,
|
|
InvalidTypeConversion,
|
|
NoNamespaceForPrefix,
|
|
MismatchedParen,
|
|
DuplicateOpcode,
|
|
OpcodeExists,
|
|
OpcodeNotFound,
|
|
PredicateNestingTooDeep
|
|
}
|
|
|
|
internal class QueryCompileException : XPathException
|
|
{
|
|
QueryCompileError error;
|
|
|
|
internal QueryCompileException(QueryCompileError error, string message) : base(message, null)
|
|
{
|
|
this.error = error;
|
|
}
|
|
|
|
internal QueryCompileException(QueryCompileError error) : this(error, null)
|
|
{
|
|
this.error = error;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return this.error.ToString();
|
|
}
|
|
}
|
|
}
|