Error

class Error<T>(message: String, response: T? = null) : NetworkResult<T>

Represents an error that occurred during a network operation.

Parameters

message

A message describing the error.

response

The response data, if any, associated with the error.

Constructors

Link copied to clipboard
constructor(message: String, response: T? = null)

Properties

Link copied to clipboard

A message providing additional information about the result; empty by default for Success and Loading, and always populated for Error.

Link copied to clipboard
val response: T?

The response data if the operation was successful.