GymError
Error from the API. code is the GraphQL error code (NOT_FOUND, FORBIDDEN, BAD_USER_INPUT…) or NETWORK / HTTP_
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new GymError(
code,message,errors?,operationName?):GymError
Parameters
Section titled “Parameters”string
message
Section titled “message”string
errors?
Section titled “errors?”GraphQLErrorShape[] = []
operationName?
Section titled “operationName?”string
Returns
Section titled “Returns”GymError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”
readonlycode:string
errors
Section titled “errors”
readonlyerrors:GraphQLErrorShape[]
operationName
Section titled “operationName”
readonlyoperationName:string|undefined
Accessors
Section titled “Accessors”retryable
Section titled “retryable”Get Signature
Section titled “Get Signature”get retryable():
boolean
True when retrying later may succeed (offline, server hiccup).
Returns
Section titled “Returns”boolean