---
title: errorDomain
framework: Message UI
role: symbol
role_heading: Type Property
platforms: [iOS 3.0+, iPadOS 3.0+, Mac Catalyst 13.1+, visionOS 1.0+]
path: messageui/mfmailcomposeerror/errordomain
---

# errorDomain

The domain for errors related to mail composition.

## Declaration

```swift
static var errorDomain: String { get }
```

## See Also

### Errors

- [saveFailed](messageui/mfmailcomposeerror/savefailed.md)
- [sendFailed](messageui/mfmailcomposeerror/sendfailed.md)
- [MFMailComposeError.Code](messageui/mfmailcomposeerror/code.md)
