// Tim Coleman (tim@timcoleman.com)
//
// (C) Copyright 2002 Tim Coleman
-//
-
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
//
using System.Runtime.Serialization;
+using System.Security.Permissions;
namespace System.Xml.XPath
{
{
#region Constructors
+#if NET_2_0
+ public XPathException ()
+ : base ("")
+ {
+ }
+#endif
+
protected XPathException (SerializationInfo info, StreamingContext context) : base (info, context) {}
public XPathException (string message, Exception innerException) : base (message, innerException) {}
- internal XPathException (string message) : base (message, null) {}
+#if NET_2_0
+ public XPathException (string message)
+#else
+ internal XPathException (string message)
+#endif
+ : base (message, null)
+ {
+ }
#endregion
#region Properties
public override string Message {
-
get { return base.Message; }
-
}
#endregion
#region Methods
+ [SecurityPermission (SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData (SerializationInfo info, StreamingContext context)
{
base.GetObjectData (info, context);