Error codes for the GKSession
error domain.
SDKs
- iOS 3.0–7.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–9.0Deprecated
- watchOS 2.0–2.0Deprecated
Framework
- Game
Kit
Declaration
typedef enum GKSessionError : int {
...
} GKSessionError;
Error codes for the GKSession
error domain.
SDKs
Framework
typedef enum GKSessionError : int {
...
} GKSessionError;
GKSession Invalid Parameter Error
A parameter had an unexpected value.
GKSession Peer Not Found Error
A peer with the specified peer
string could not be found.
GKSession Declined Error
The peer your application tried to connect to refused the connection.
GKSession Timed Out Error
The operation could not be completed in the specified timeout period.
GKSession Cancelled Error
A peer that invited the session to connect to them canceled the connection request.
GKSession Connection Failed Error
The attempt to establish a connection with another peer failed.
GKSession Connection Closed Error
The connection to another peer closed unexpectedly.
GKSession Data Too Big Error
The data your application attempted to send was too large for the session to transmit in a single call.
GKSession Not Connected Error
Reserved for future use.
GKSession Cannot Enable Error
Bluetooth is not currently available.
GKSession In Progress Error
The peer your application attempted to connect to has already requested a connection to your session.
GKSession Connectivity Error
An error occurred in the GKSession
object's connection code.
GKSession Transport Error
An error occurred in the GKSession
object's transport code.
GKSession Internal Error
A serious error occurred inside GKSession
.
GKSession Unknown Error
Reserved for when the error does not fit in another category above.
GKSession System Error
An error occurred outside of the GKSession
object's control, such as memory allocation.