Cms |
public class CmsEnvelopeException : CmsException
The CmsEnvelopeException type exposes the following members.
| Name | Description | |
|---|---|---|
| CmsEnvelopeException | Initialize a new instance of the CmsEnvelopeException class. |
| Name | Description | |
|---|---|---|
| Data | (Inherited from Exception) | |
| HelpLink | (Inherited from Exception) | |
| HResult | (Inherited from Exception) | |
| InnerException | (Inherited from Exception) | |
| Message | (Inherited from Exception) | |
| Source | (Inherited from Exception) | |
| StackTrace | (Inherited from Exception) | |
| TargetSite | (Inherited from Exception) |
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object) | |
| Finalize | (Inherited from Object) | |
| GetBaseException | (Inherited from Exception) | |
| GetHashCode | (Inherited from Object) | |
| GetObjectData | (Inherited from Exception) | |
| GetType | (Inherited from Exception) | |
| MemberwiseClone | (Inherited from Object) | |
| ToString | (Inherited from Exception) |
| Name | Description | |
|---|---|---|
| SerializeObjectState | (Inherited from Exception) |
This exception is thrown by the BouncyCastleSecureMimeContext.Encrypt and BouncyCastleSecureMimeContext.EncryptAsync methods when an error occurs while generating a CMS envelope.
The InnerException will typically be one of the following types:
AggregateException: One or more of the recipient certificates failed validation.
In this scenario, callers may iterate over each of the InnerExceptions for exceptions of type CmsRecipientException. These exceptions can be used to remove the failed recipients before retrying the encryption operation.
CmsException: An error within BouncyCastle occurred.