---
title: WeatherError
framework: WeatherKit
role: symbol
role_heading: Enumeration
platforms: [iOS 16.0+, iPadOS 16.0+, Mac Catalyst 16.0+, macOS 13.0+, tvOS 16.0+, visionOS 1.0+, watchOS 9.0+]
path: weatherkit/weathererror
---

# WeatherError

An error WeatherKit returns.

## Declaration

```swift
enum WeatherError
```

## Topics

### Getting the error type

- [WeatherError.permissionDenied](weatherkit/weathererror/permissiondenied.md)
- [WeatherError.unknown](weatherkit/weathererror/unknown.md)

### Getting the error properties

- [errorDescription](weatherkit/weathererror/errordescription.md)
- [failureReason](weatherkit/weathererror/failurereason.md)
- [helpAnchor](weatherkit/weathererror/helpanchor.md)
- [recoverySuggestion](weatherkit/weathererror/recoverysuggestion.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [LocalizedError](foundation/localizederror.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
