<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplication/CategoryDefaultError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:SC37UIApplicationCategoryDefaultErrorCodeLeV"
  },
  "title" : "UIApplication.CategoryDefaultError"
}
-->

# UIApplication.CategoryDefaultError

Errors that can happen when the system checks if your app is the default app in a category.

```
struct CategoryDefaultError
```

## Topics

### Getting information about the error

[`enum Code`](/documentation/UIKit/UIApplication/CategoryDefaultError/Code)

An enumeration of reasons an error happens when the system discovers whether your app is the default in a category.

[`static let retryAvailableDateErrorKey: String`](/documentation/UIKit/UIApplication/CategoryDefaultError/retryAvailableDateErrorKey)

A dictionary key, with a value that’s a date when a result is next available.

[`static let statusLastProvidedDateErrorKey: String`](/documentation/UIKit/UIApplication/CategoryDefaultError/statusLastProvidedDateErrorKey)

A dictionary key, with a value that’s the date your app last received a successful result.

### Errors when discovering if an app is the default in a category

[`static var errorDomain: String`](/documentation/UIKit/UIApplication/CategoryDefaultError/errorDomain)

A string that indicates that an error happened when the system attempted to determine if your app is the default in a category.

[`static var rateLimited: UIApplication.CategoryDefaultError.Code`](/documentation/UIKit/UIApplication/CategoryDefaultError/rateLimited)

An error code that indicates your app requested its status too frequently.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)