<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WeatherKit",
  "identifier" : "/documentation/WeatherKit/WeatherError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WeatherKit"
    ],
    "preciseIdentifier" : "s:10WeatherKit0A5ErrorO"
  },
  "title" : "WeatherError"
}
-->

# WeatherError

An error WeatherKit returns.

```
enum WeatherError
```

## Topics

### Getting the error type

[`case permissionDenied`](/documentation/WeatherKit/WeatherError/permissionDenied)

An error indicating permission denied.

[`case unknown`](/documentation/WeatherKit/WeatherError/unknown)

An unknown error.

### Getting the error properties

[`var errorDescription: String?`](/documentation/WeatherKit/WeatherError/errorDescription)

A localized message describing what error occurred.

[`var failureReason: String?`](/documentation/WeatherKit/WeatherError/failureReason)

A localized message describing the reason for the failure.

[`var helpAnchor: String?`](/documentation/WeatherKit/WeatherError/helpAnchor)

A localized message providing text if the user requests help.

[`var recoverySuggestion: String?`](/documentation/WeatherKit/WeatherError/recoverySuggestion)

A localized message describing how to recover from the failure.

## Relationships

### Conforms To

[`LocalizedError`](/documentation/Foundation/LocalizedError)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Error`](/documentation/Swift/Error)

[`Equatable`](/documentation/Swift/Equatable)

---

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)