Class NSErrorExtensions
Extensions to the NSError object.
Inherited Members
Namespace: UnityEngine.XR.ARKit
Assembly: Unity.XR.ARKit.dll
Syntax
public static class NSErrorExtensions
Methods
AsARKitErrorCode(NSError)
Converts an NSError to an ARKitErrorCode by casting its code to an ARKitErrorCode.
Declaration
public static ARKitErrorCode AsARKitErrorCode(this NSError error)
Parameters
Type | Name | Description |
---|---|---|
NSError | error | The NSError being extended. |
Returns
Type | Description |
---|---|
ARKitErrorCode | Returns the NSError as an ARKitErrorCode. |
Exceptions
Type | Condition |
---|---|
InvalidCastException | Thrown if |
See Also
AsCoreLocationErrorCode(NSError)
Converts an NSError to an CoreLocationErrorCode by casting its code to an CoreLocationErrorCode.
Declaration
public static CoreLocationErrorCode AsCoreLocationErrorCode(this NSError error)
Parameters
Type | Name | Description |
---|---|---|
NSError | error | The NSError being extended. |
Returns
Type | Description |
---|---|
CoreLocationErrorCode | Returns the NSError as an CoreLocationErrorCode. |
Exceptions
Type | Condition |
---|---|
InvalidCastException | Thrown if |