Package com.apollographql.apollo3.exception

Types

ApolloCanceledException
Link copied to clipboard
common
class ApolloCanceledException(message: String?, cause: Throwable?) : ApolloException
ApolloCompositeException
Link copied to clipboard
common
class ApolloCompositeException(first: Throwable?, second: Throwable?) : ApolloException
Multiple exceptions happened, for an exemple with a CacheFirst fetch policy
ApolloException
Link copied to clipboard
common
open class ApolloException(message: String?, cause: Throwable?) : RuntimeException
The base class for all exceptionsThis inherits from RuntimeException.
ApolloGenericException
Link copied to clipboard
common
class ApolloGenericException(message: String?, cause: Throwable?) : ApolloException
Something went wrong but it's not sure exactly what
ApolloHttpException
Link copied to clipboard
common
class ApolloHttpException(statusCode: Int, headers: List<HttpHeader>, body: BufferedSource?, message: String, cause: Throwable?) : ApolloException
The response was received but the response code was not 200
ApolloNetworkException
Link copied to clipboard
common
class ApolloNetworkException(message: String?, platformCause: Any?) : ApolloException
A network error happened: socket closed, DNS issue, TLS problem, etc...
ApolloParseException
Link copied to clipboard
common
class ApolloParseException(message: String?, cause: Throwable?) : ApolloException
The response could not be parsed either because of another issue than JsonDataException or JsonEncodingException
ApolloWebSocketClosedException
Link copied to clipboard
common
class ApolloWebSocketClosedException(code: Int, reason: String?, cause: Throwable?) : ApolloException
A WebSocket connection could not be established: e.g.
AutoPersistedQueriesNotSupported
Link copied to clipboard
common
class AutoPersistedQueriesNotSupported : ApolloException
CacheMissException
Link copied to clipboard
common
class CacheMissException(key: String, fieldName: String?) : ApolloException
An object/field was missing in the cache If fieldName is null, it means a reference to an object could not be resolved
HttpCacheMissException
Link copied to clipboard
common
class HttpCacheMissException(message: String, cause: Exception?) : ApolloException
A HTTP cache miss happened
JsonDataException
Link copied to clipboard
common
class JsonDataException(message: String) : ApolloException
Thrown when the data in a JSON document doesn't match the data expected by the caller.
JsonEncodingException
Link copied to clipboard
common
class JsonEncodingException(message: String) : ApolloException
Thrown when the data being parsed is not encoded as valid JSON.
MissingValueException
Link copied to clipboard
common
class MissingValueException : ApolloException

Properties

nsError
Link copied to clipboard
apple
val <ERROR CLASS>.nsError: NSError?