<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIDocumentBrowserError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIDocumentBrowserErrorCode"
  },
  "title" : "UIDocumentBrowserError.Code"
}
-->

# UIDocumentBrowserError.Code

The error codes for document browser errors.

```
enum Code
```

## Topics

### Error codes

[`case generic`](/documentation/UIKit/UIDocumentBrowserError/Code/generic)

An unspecified error.

[`case noLocationAvailable`](/documentation/UIKit/UIDocumentBrowserError/Code/noLocationAvailable)

An error indicating that no location exists.

### Initializers

[`init?(rawValue: Int)`](/documentation/UIKit/UIDocumentBrowserError/Code/init(rawValue:))

## See Also

[`class UIDocumentBrowserViewController`](/documentation/UIKit/UIDocumentBrowserViewController)

A view controller for browsing and performing actions on documents that you store locally and in the cloud.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)