ApolloNetworkException

class ApolloNetworkException(message: String? = null, val platformCause: Any? = null) : ApolloException

An I/O error happened: socket closed, DNS issue, TLS problem, file not found, etc...

This is called ApolloNetworkException for historical reasons, but it should have been ApolloIOException instead. ApolloNetworkException is thrown when an I/O error happens reading the operation.

Parameters

message

a message indicating what the error was.

platformCause

the underlying cause. Might be null. When not null, it can be cast to:

  • a Throwable on JVM platforms.

  • a NSError on Darwin platforms. to get more details about what went wrong.

Constructors

Link copied to clipboard
constructor(message: String? = null, platformCause: Any? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard
val platformCause: Any? = null