Companion

object Companion

Functions

Link copied to clipboard
fun <T> failure(exception: Exception): Response.Failure<T>

Creates a failure response with the given exception.

Link copied to clipboard
fun <T> success(data: T): Response.Success<T>

Creates a successful response with the given data.