Inheritance: System.SystemException
 void AddErrorResult(XPathException ex)
 {
     ListViewItem item = new ListViewItem(string.Concat(StringParser.Parse("${res:ICSharpCode.XmlEditor.XPathQueryPad.XPathLabel}"), " ", ex.Message), ErrorImageIndex);
     item.Tag = ex;
     xPathResultsListView.Items.Add(item);
 }
示例#2
0
		public void DenyUnrestricted ()
		{
			// can we call everything without a SecurityException ?
			XPathException xe = new XPathException (String.Empty, null);
			Assert.IsNotNull (xe.Message, "Message");
		}
 void IPscxErrorHandler.WriteXPathExpressionError(string xpathExpression, XPathException ex)
 {
     ThrowTerminatingError(new ErrorRecord(ex, "InvalidXPathExpression", ErrorCategory.InvalidArgument, xpathExpression));
 }
示例#4
0
		public void PermitOnlySerializationFormatter_GetObjectData ()
		{
			StreamingContext sc = new StreamingContext (StreamingContextStates.All);
			XPathException xe = new XPathException (String.Empty, null);
			xe.GetObjectData (null, sc);
		}