<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "s:SC11MKErrorCodeLeV"
  },
  "title" : "MKError"
}
-->

# MKError

Error constants for the MapKit framework.

```
struct MKError
```

## Topics

### Error codes

[`decodingFailed`](/documentation/MapKit/MKError/decodingFailed)

GeoJSON decoding failed.

[`directionsNotFound`](/documentation/MapKit/MKError/directionsNotFound)

Directions to the specified location aren’t available.

[`loadingThrottled`](/documentation/MapKit/MKError/loadingThrottled)

The data didn’t load because data throttling is in effect.

[`placemarkNotFound`](/documentation/MapKit/MKError/placemarkNotFound)

The framework couldn’t find the specified placemark.

[`serverFailure`](/documentation/MapKit/MKError/serverFailure)

The map server was unable to return the desired information.

[`unknown`](/documentation/MapKit/MKError/unknown)

An unknown error occurred.

[`MKError.Code`](/documentation/MapKit/MKError/Code)

Error constants for the MapKit framework.

### Accessing error properties

  <doc://com.apple.documentation/documentation/Swift/Error/localizedDescription>

[`errorDomain`](/documentation/MapKit/MKError/errorDomain)

The error domain.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)