---
title: CLError.Code.promptDeclined
framework: corelocation
role: symbol
role_heading: Case
path: corelocation/clerror-swift.struct/code/promptdeclined
---

# CLError.Code.promptDeclined

A constant that indicates the user didn’t grant the requested temporary authorization.

## Declaration

```swift
case promptDeclined
```

## Discussion

Discussion If the prompt was shown to the user, who declined, or if an error prevented the prompt from being displayed, then requestTemporaryPreciseLocationAuthorization(withPurposeKey:completion:) throws this error.

## See Also

### Getting general errors

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