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

PkcsException

public class PkcsException : Exception
Base exception for PKCS related issues.
using System; using System.Runtime.Serialization; namespace Org.BouncyCastle.Pkcs { [Serializable] public class PkcsException : Exception { public PkcsException() { } public PkcsException(string message) : base(message) { } public PkcsException(string message, Exception innerException) : base(message, innerException) { } protected PkcsException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }