getError

fun Response<*>?.getError(): List<GraphError>?(source)

Deprecated

Legacy error utility of the GraphContainer flow. Use GraphQLResponseError handling with the backend-neutral GraphQLResponse contract instead.

Converts the response error response into an object.

Legacy: part of the deprecated GraphContainer error flow in :compat.

Uses a default Gson-backed GraphQLJson instance for deserialization. For custom serialization backends, use getError with a GraphQLJson parameter.

Return

The error object, or null if an exception was encountered

See also


fun Response<*>?.getError(json: GraphQLJson): List<GraphError>?(source)

Deprecated

Legacy error utility of the GraphContainer flow. Use GraphQLResponseError handling with the backend-neutral GraphQLResponse contract instead.

Converts the response error response into an object using the provided GraphQLJson.

Legacy: part of the deprecated GraphContainer error flow in :compat.

Return

The error object, or null if an exception was encountered

Parameters

json

A GraphQLJson instance used for deserialization.

See also