---
title: CLError
framework: corelocation
role: symbol
role_heading: Structure
path: corelocation/clerror-swift.struct
---

# CLError

A Core Location error.

## Declaration

```swift
struct CLError
```

## Overview

Overview Instances of NSError object delivered to the delegate use these error codes for the code property of the error object.

## Topics

### Getting general errors

- [locationUnknown](corelocation/clerror-swift.struct/locationunknown.md)
- [denied](corelocation/clerror-swift.struct/denied.md)
- [promptDeclined](corelocation/clerror-swift.struct/promptdeclined.md)
- [network](corelocation/clerror-swift.struct/network.md)
- [headingFailure](corelocation/clerror-swift.struct/headingfailure.md)
- [rangingUnavailable](corelocation/clerror-swift.struct/rangingunavailable.md)
- [rangingFailure](corelocation/clerror-swift.struct/rangingfailure.md)
- [CLError.Code](corelocation/clerror-swift.struct/code.md)

### Getting region monitoring errors

- [regionMonitoringDenied](corelocation/clerror-swift.struct/regionmonitoringdenied.md)
- [regionMonitoringFailure](corelocation/clerror-swift.struct/regionmonitoringfailure.md)
- [regionMonitoringSetupDelayed](corelocation/clerror-swift.struct/regionmonitoringsetupdelayed.md)
- [regionMonitoringResponseDelayed](corelocation/clerror-swift.struct/regionmonitoringresponsedelayed.md)

### Getting geocoding errors

- [geocodeCanceled](corelocation/clerror-swift.struct/geocodecanceled.md)
- [geocodeFoundNoResult](corelocation/clerror-swift.struct/geocodefoundnoresult.md)
- [geocodeFoundPartialResult](corelocation/clerror-swift.struct/geocodefoundpartialresult.md)

### Getting deferred location update errors

- [deferredFailed](corelocation/clerror-swift.struct/deferredfailed.md)
- [deferredCanceled](corelocation/clerror-swift.struct/deferredcanceled.md)
- [deferredAccuracyTooLow](corelocation/clerror-swift.struct/deferredaccuracytoolow.md)
- [deferredDistanceFiltered](corelocation/clerror-swift.struct/deferreddistancefiltered.md)
- [deferredNotUpdatingLocation](corelocation/clerror-swift.struct/deferrednotupdatinglocation.md)

### Getting the error details

- [alternateRegion](corelocation/clerror-swift.struct/alternateregion.md)

### Type Properties

- [historicalLocationError](corelocation/clerror-swift.struct/historicallocationerror.md)
- [errorDomain](corelocation/clerror-swift.struct/errordomain.md)

## Relationships

### Conforms To

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

## See Also

### Errors

- [kCLErrorDomain](corelocation/kclerrordomain.md)
- [kCLErrorUserInfoAlternateRegionKey](corelocation/kclerroruserinfoalternateregionkey.md)
