Skip to main content

GenericErrorResponse

Asynchronous error from the UDP game server for a previously sent datagram (e.g. a send* mutation). Delivered as a member of the udpNotifications union, NOT as a GraphQL error on the mutation (which only reports whether the datagram was accepted for sending). Match it to the originating send via sequenceNumber and read errorCode for the reason. Note: not every failure produces one — some auth failures are dropped silently (see UdpErrorCode).

type GenericErrorResponse {
sequenceNumber: Int!
errorCode: UdpErrorCode!
}

Fields

GenericErrorResponse.sequenceNumber ● Int! non-null scalar

Echoes the sequenceNumber of the request that failed (a uint8, 0-255, wrapping at modulo 256) so you can correlate this error with the send* mutation that produced it. Correlation only — it is not an idempotency key.

GenericErrorResponse.errorCode ● UdpErrorCode! non-null enum

Error code indicating the reason for the failure.

Implemented By

UdpNotification union