You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,101 @@
|
||||
//------------------------------------------------------------
|
||||
// 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();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user