{
// we need to keep this members for V1 serialization compatibility
private readonly string _res;
- private readonly string[]? _args;
+ private readonly string?[]? _args;
// message != null for V1 & V2 exceptions deserialized in Whidbey
// message == null for created V2 exceptions; the exception message is stored in Exception._message
public XPathException() : this(string.Empty, (Exception?)null) { }
- public XPathException(string message) : this(message, (Exception?)null) { }
+ public XPathException(string? message) : this(message, (Exception?)null) { }
- public XPathException(string message, Exception? innerException) :
- this(SR.Xml_UserException, new string[] { message }, innerException)
+ public XPathException(string? message, Exception? innerException) :
+ this(SR.Xml_UserException, new string?[] { message }, innerException)
{
}
{
}
- private XPathException(string res, string[]? args, Exception? inner) :
+ private XPathException(string res, string?[]? args, Exception? inner) :
base(CreateMessage(res, args), inner)
{
HResult = HResults.XmlXPath;
_args = args;
}
- private static string CreateMessage(string res, string[]? args)
+ private static string CreateMessage(string res, string?[]? args)
{
try
{
{
public XPathException() { }
protected XPathException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
- public XPathException(string message) { }
- public XPathException(string message, System.Exception innerException) { }
+ public XPathException(string? message) { }
+ public XPathException(string? message, System.Exception? innerException) { }
public override string Message { get { throw null; } }
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { }
}