# GARSessionErrorCode

## Summary

| ### Enumerations ||
|---|---|
| `https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcode{ https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcodedevicenotcompatible = -1, https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcodeinvalidargument = -2, https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcodenottracking = -3, https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcodeframeoutoforder = -4, https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcodeanchornotsupportedforhosting = -5, https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcoderesourceexhausted = -6, https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcodelocationpermissionnotgranted = -7, https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcodeconfigurationnotsupported = -8, https://developers.google.com/ar/reference/ios/group/GARSessionErrorCode#garsessionerrorcodeillegalstate = -9 }` | enumPossible codes for `NSError`s generated by a `https://developers.google.com/ar/reference/ios/interface/GARSession#interface_g_a_r_session`. |

## Enumerations

### GARSessionErrorCode

```
 GARSessionErrorCode
```
Possible codes for `NSError`s generated by a `https://developers.google.com/ar/reference/ios/interface/GARSession#interface_g_a_r_session`.

| Properties ||
|---|---|
| `GARSessionErrorCodeAnchorNotSupportedForHosting` | `https://developers.google.com/ar/reference/ios/category/GARSession(CloudAnchors)#hostcloudanchor:error:` was called with an unsupported `ARAnchor` type. Currently there are no unsupported anchor types. |
| `GARSessionErrorCodeConfigurationNotSupported` | The configuration could not be set because it is unsupported on this device. |
| `GARSessionErrorCodeDeviceNotCompatible` | This device or OS version is not currently supported. Supported OS versions are documented in `README.md`. |
| `GARSessionErrorCodeFrameOutOfOrder` | An `ARFrame` was passed to `https://developers.google.com/ar/reference/ios/interface/GARSession#update:error:` that is older than a previously passed in frame. **See also:** `https://developers.google.com/ar/reference/ios/interface/GARSession#update:error:` |
| `GARSessionErrorCodeIllegalState` | The operation could not be completed because the session is in the wrong state. |
| `GARSessionErrorCodeInvalidArgument` | An argument is `nil` or otherwise invalid (as noted in doc comment). |
| `GARSessionErrorCodeLocationPermissionNotGranted` | The operation could not be completed because location permission was not granted with full accuracy. |
| `GARSessionErrorCodeNotTracking` | The operation could not be completed because the `ARSession`'s current tracking state is not `ARTrackingStateNormal`. |
| `GARSessionErrorCodeResourceExhausted` | There are no available resources to complete the operation. |