True when the error describes the transport failing rather than the server refusing.
Honours an IsTransportFailure: true a sanitizing client recorded on the error (see
SafeGraphQLError in @memberjunction/graphql-dataprovider). Otherwise
checks three independent places, because a GraphQL client can put the interesting part in
any of them: an HTTP status (err.status / err.statusCode / err.response.status /
err.networkError.statusCode), a networkError property at all, and the collected message
text from the error, its networkError, its nested error / cause, and every entry of a
GraphQL response.errors[].
Anything else — an authorization denial, a validation rejection, a programming error, an
entity missing from metadata — is NOT transport, and callers must let it propagate.
True when the error describes the transport failing rather than the server refusing.
Honours an
IsTransportFailure: truea sanitizing client recorded on the error (seeSafeGraphQLErrorin@memberjunction/graphql-dataprovider). Otherwise checks three independent places, because a GraphQL client can put the interesting part in any of them: an HTTP status (err.status/err.statusCode/err.response.status/err.networkError.statusCode), anetworkErrorproperty at all, and the collected message text from the error, itsnetworkError, its nestederror/cause, and every entry of a GraphQLresponse.errors[].Anything else — an authorization denial, a validation rejection, a programming error, an entity missing from metadata — is NOT transport, and callers must let it propagate.