Request

constructor(message: String, code: String)

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"
)