NetworkException

A request to a remote source failed, for reason.

The data layer throws it in place of the HTTP client's own exception, so a caller can tell the failures apart without depending on the client. :library:core:network translates the client's exceptions into this one, and the UI layer turns it into text. The client's exception stays as cause for reporting.

It is an IOException, so code that already catches I/O failures still catches it.

Constructors

Link copied to clipboard
constructor(reason: NetworkException.Reason, cause: Throwable? = null)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard