ApolloNetworkException

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

A network error happened: socket closed, DNS issue, TLS problem, etc...

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
fun ApolloNetworkException(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

Extensions

Link copied to clipboard
val ApolloNetworkException.nsError: NSError?