Failure

data class Failure<out F>(val reason: F) : Result<Nothing, F>

Instance of this class will be returned when it is not possible to successfully finish the operation requested by the client.

Parameters

reason

encapsulates the reason for the unsuccessful requested operation and could contain any additional information represented by the provided class or Unit in case when additional info is not needed.

Constructors

Link copied to clipboard
constructor(reason: F)

Properties

Link copied to clipboard
val reason: F