---
title: EKError.Code
framework: EventKit
role: symbol
role_heading: Enumeration
path: eventkit/ekerror/code
---

# EKError.Code

Error codes for EventKit errors.

## Declaration

```swift
enum Code
```

## Topics

### Constants

- [EKError.Code.eventNotMutable](eventkit/ekerror/code/eventnotmutable.md)
- [EKError.Code.noCalendar](eventkit/ekerror/code/nocalendar.md)
- [EKError.Code.noStartDate](eventkit/ekerror/code/nostartdate.md)
- [EKError.Code.noEndDate](eventkit/ekerror/code/noenddate.md)
- [EKError.Code.datesInverted](eventkit/ekerror/code/datesinverted.md)
- [EKError.Code.internalFailure](eventkit/ekerror/code/internalfailure.md)
- [EKError.Code.calendarReadOnly](eventkit/ekerror/code/calendarreadonly.md)
- [EKError.Code.durationGreaterThanRecurrence](eventkit/ekerror/code/durationgreaterthanrecurrence.md)
- [EKError.Code.alarmGreaterThanRecurrence](eventkit/ekerror/code/alarmgreaterthanrecurrence.md)
- [EKError.Code.startDateTooFarInFuture](eventkit/ekerror/code/startdatetoofarinfuture.md)
- [EKError.Code.startDateCollidesWithOtherOccurrence](eventkit/ekerror/code/startdatecollideswithotheroccurrence.md)
- [EKError.Code.objectBelongsToDifferentStore](eventkit/ekerror/code/objectbelongstodifferentstore.md)
- [EKError.Code.invitesCannotBeMoved](eventkit/ekerror/code/invitescannotbemoved.md)
- [EKError.Code.invalidSpan](eventkit/ekerror/code/invalidspan.md)
- [EKError.Code.calendarHasNoSource](eventkit/ekerror/code/calendarhasnosource.md)
- [EKError.Code.calendarSourceCannotBeModified](eventkit/ekerror/code/calendarsourcecannotbemodified.md)
- [EKError.Code.calendarIsImmutable](eventkit/ekerror/code/calendarisimmutable.md)
- [EKError.Code.sourceDoesNotAllowCalendarAddDelete](eventkit/ekerror/code/sourcedoesnotallowcalendaradddelete.md)
- [EKError.Code.recurringReminderRequiresDueDate](eventkit/ekerror/code/recurringreminderrequiresduedate.md)
- [EKError.Code.structuredLocationsNotSupported](eventkit/ekerror/code/structuredlocationsnotsupported.md)
- [EKError.Code.reminderLocationsNotSupported](eventkit/ekerror/code/reminderlocationsnotsupported.md)
- [EKError.Code.alarmProximityNotSupported](eventkit/ekerror/code/alarmproximitynotsupported.md)
- [EKError.Code.calendarDoesNotAllowEvents](eventkit/ekerror/code/calendardoesnotallowevents.md)
- [EKError.Code.calendarDoesNotAllowReminders](eventkit/ekerror/code/calendardoesnotallowreminders.md)
- [EKError.Code.sourceDoesNotAllowReminders](eventkit/ekerror/code/sourcedoesnotallowreminders.md)
- [EKError.Code.sourceDoesNotAllowEvents](eventkit/ekerror/code/sourcedoesnotallowevents.md)
- [EKError.Code.priorityIsInvalid](eventkit/ekerror/code/priorityisinvalid.md)
- [EKError.Code.invalidEntityType](eventkit/ekerror/code/invalidentitytype.md)
- [EKError.Code.procedureAlarmsNotMutable](eventkit/ekerror/code/procedurealarmsnotmutable.md)
- [EKError.Code.eventStoreNotAuthorized](eventkit/ekerror/code/eventstorenotauthorized.md)
- [EKError.Code.osNotSupported](eventkit/ekerror/code/osnotsupported.md)
- [EKError.Code.invalidInviteReplyCalendar](eventkit/ekerror/code/invalidinvitereplycalendar.md)
- [EKError.Code.notificationsCollectionFlagNotSet](eventkit/ekerror/code/notificationscollectionflagnotset.md)
- [EKError.Code.sourceMismatch](eventkit/ekerror/code/sourcemismatch.md)
- [EKError.Code.notificationCollectionMismatch](eventkit/ekerror/code/notificationcollectionmismatch.md)
- [EKError.Code.notificationSavedWithoutCollection](eventkit/ekerror/code/notificationsavedwithoutcollection.md)
- [EKError.Code.last](eventkit/ekerror/code/last.md)

### Enumeration Cases

- [EKError.Code.reminderAlarmContainsEmailOrUrl](eventkit/ekerror/code/reminderalarmcontainsemailorurl.md)

### Initializers

- [init(rawValue:)](eventkit/ekerror/code/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Errors

- [EKError](eventkit/ekerror.md)
- [EKErrorDomain](eventkit/ekerrordomain.md)
