DataConnectOperationFailureResponse

interface DataConnectOperationFailureResponse<Data : Any?>


The data and errors provided by the backend in the response message.

Summary

Nested types

Information about the error, as provided in the response payload from the backend.

Public functions

String

Returns a string representation of this object, useful for debugging.

Public properties

Data?

The successfully-decoded rawData, if any.

List<DataConnectOperationFailureResponse.ErrorInfo>

The list of errors provided by the backend in the response message; may be empty.

Map<StringAny?>?

The raw, un-decoded data provided by the backend in the response message.

Public functions

toString

fun toString(): String

Returns a string representation of this object, useful for debugging.

The string representation is not guaranteed to be stable and may change without notice at any time. Therefore, the only recommended usage of the returned string is debugging and/or logging. Namely, parsing the returned string or storing the returned string in non-volatile storage should generally be avoided in order to be robust in case that the string representation changes.

Returns
String

a string representation of this object, which includes the class name and the values of all public properties.

Public properties

data

val data: Data?

The successfully-decoded rawData, if any.

Will be null if rawData is null, or if decoding the rawData failed.

errors

val errorsList<DataConnectOperationFailureResponse.ErrorInfo>

The list of errors provided by the backend in the response message; may be empty.

See https://spec.graphql.org/draft/#sec-Errors for details.

rawData

val rawDataMap<StringAny?>?

The raw, un-decoded data provided by the backend in the response message. Will be null if, and only if, the backend explicitly sent null for the data or if the data was not present in the response.

Otherwise, the values in the map will be one of the following:

Consider using toJson to get a higher-level object.