<PackageReference Include="BouncyCastle.Cryptography" Version="2.6.2" />

TlsException

public class TlsException : IOException
using System; using System.IO; using System.Runtime.Serialization; namespace Org.BouncyCastle.Tls { [Serializable] public class TlsException : IOException { public TlsException() { } public TlsException(string message) : base(message) { } public TlsException(string message, Exception innerException) : base(message, innerException) { } protected TlsException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }