---
title: MKError.Code
framework: mapkit
role: symbol
role_heading: Enumeration
path: mapkit/mkerror/code
---

# MKError.Code

Error constants for the MapKit framework.

## Declaration

```swift
enum Code
```

## Topics

### Constants

- [MKError.Code.decodingFailed](mapkit/mkerror/code/decodingfailed.md)
- [MKError.Code.directionsNotFound](mapkit/mkerror/code/directionsnotfound.md)
- [MKError.Code.loadingThrottled](mapkit/mkerror/code/loadingthrottled.md)
- [MKError.Code.placemarkNotFound](mapkit/mkerror/code/placemarknotfound.md)
- [MKError.Code.serverFailure](mapkit/mkerror/code/serverfailure.md)
- [MKError.Code.unknown](mapkit/mkerror/code/unknown.md)

### Initializers

- [init(rawValue:)](mapkit/mkerror/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

- [MKErrorDomain](mapkit/mkerrordomain.md)
- [MKError](mapkit/mkerror.md)
