Failure

Result class for unsuccessful operations.

Author

Jan Müller
class Failure<T : Any> (error: String,status: HttpStatusCode) : Result

Parameters

status
The HTTP status code.
T
The type of the Result.

Constructors

<init>
Link copied to clipboard
The type of the Result.
fun <T : Any> <init>(error: String, status: HttpStatusCode)

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

error
Link copied to clipboard
The error of the Result.
val error: String
status
Link copied to clipboard
The HTTP status code.
override val status: HttpStatusCode