---
title: encryptionError
framework: mailkit
role: symbol
role_heading: Instance Property
path: mailkit/memessagesecurityinformation/encryptionerror
---

# encryptionError

An error that indicates the security handler couldn’t decrypt the message.

## Declaration

```swift
var encryptionError: (any Error)? { get }
```

## See Also

### Describing Message Security Attributes

- [init(signers:isEncrypted:signingError:encryptionError:)](mailkit/memessagesecurityinformation/init(signers:isencrypted:signingerror:encryptionerror:).md)
- [isEncrypted](mailkit/memessagesecurityinformation/isencrypted.md)
- [signers](mailkit/memessagesecurityinformation/signers.md)
- [signingError](mailkit/memessagesecurityinformation/signingerror.md)
