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

PgpException

public class PgpException : Exception
Generic exception class for PGP encoding/decoding problems.
using System; using System.Runtime.Serialization; namespace Org.BouncyCastle.Bcpg.OpenPgp { [Serializable] public class PgpException : Exception { public PgpException() { } public PgpException(string message) : base(message) { } public PgpException(string message, Exception innerException) : base(message, innerException) { } protected PgpException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }