---
title: url
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/cocoaerror/url
---

# url

The URL associated with this error, if any.

## Declaration

```swift
var url: URL? { get }
```
