CLError
public struct CLError : CustomNSError, Hashable, Error
Represents errors that can occur when using CoreLocation.
This struct conforms to CustomNSError
, Hashable
, and Error
.
Apple Documentation
-
The associated
NSError
instance.Declaration
Swift
public let _nsError: NSError
-
Initializes
CLError
from anNSError
instance.Declaration
Swift
public init(_nsError: NSError)
Parameters
_nsError
An existing
NSError
instance. -
Initializes
CLError
from aCLError.Code
.Declaration
Swift
public init(_ code: CLError.Code)
Parameters
code
The error code.
-
The error domain for CoreLocation errors. Apple Documentation
Declaration
Swift
public static var errorDomain: String { get }
-
Defines specific error codes that can occur within CoreLocation. Apple Documentation
See moreDeclaration
Swift
public enum Code : Int, @unchecked Sendable, Equatable
-
Undocumented
Declaration
Swift
public static var locationUnknown: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var denied: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var network: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var headingFailure: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var regionMonitoringDenied: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var regionMonitoringFailure: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var regionMonitoringSetupDelayed: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var regionMonitoringResponseDelayed: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var geocodeFoundNoResult: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var geocodeFoundPartialResult: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var geocodeCanceled: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var deferredFailed: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var deferredNotUpdatingLocation: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var deferredAccuracyTooLow: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var deferredDistanceFiltered: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var deferredCanceled: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var rangingUnavailable: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var rangingFailure: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var promptDeclined: CLError.Code { get }
-
Undocumented
Declaration
Swift
public static var historicalLocationError: CLError.Code { get }
-
In a
regionMonitoringResponseDelayed
error, this property provides an alternative region that the location services can more effectively monitor.Note
Unavailable in visionOS.Declaration
Swift
@available(visionOS, unavailable) public var alternateRegion: CLRegion? { get }