Request

data class Request(val message: String, val code: String) : ResultError

Represents an error that occurred during a network request or API call. This class contains information about request failures, including error messages and error codes for proper error handling.

Parameters

message

A human-readable description of the error

code

A unique identifier for the type of error

Example:

val error = ResultError.Request(
message = "Failed to connect to server",
code = "CONNECTION_ERROR"
)

Constructors

Link copied to clipboard
constructor(message: String, code: String)

Properties

Link copied to clipboard
Link copied to clipboard