diff --git a/src/PhoneNumbers/ParseException.cs b/src/PhoneNumbers/ParseException.cs index c90b7f536..87513a67e 100644 --- a/src/PhoneNumbers/ParseException.cs +++ b/src/PhoneNumbers/ParseException.cs @@ -5,7 +5,6 @@ namespace PhoneNumbers; /// /// An exception thrown when there is an issue parsing a phone number. /// -[Serializable] [System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public class ParseException : Exception { @@ -34,14 +33,4 @@ public ParseException(string? message, Exception? innerException) : base(message, innerException) { } - - /// - /// Initializes a new instance of the class. - /// - /// The that holds the serialized object data about the exception being thrown. - /// The that contains contextual information about the source or destination. - protected ParseException(SerializationInfo info, StreamingContext context) - : base(info, context) - { - } }