Skip to content

GymError

Error from the API. code is the GraphQL error code (NOT_FOUND, FORBIDDEN, BAD_USER_INPUT…) or NETWORK / HTTP_.

  • Error

new GymError(code, message, errors?, operationName?): GymError

string

string

GraphQLErrorShape[] = []

string

GymError

Error.constructor

readonly code: string


readonly errors: GraphQLErrorShape[]


readonly operationName: string | undefined

get retryable(): boolean

True when retrying later may succeed (offline, server hiccup).

boolean