toggle menu
lib
0.0.266
jvm
switch theme
search in API
lib
/
com.prettybyte.klerk
/
CommandResult
/
Failure
Failure
data
class
Failure
<
T
:
Any
,
C
:
KlerkContext
,
V
>
(
val
problem
:
Problem
)
:
CommandResult
<
T
,
C
,
V
>
Members
Constructors
Failure
Link copied to clipboard
constructor
(
problem
:
Problem
)
Properties
problem
Link copied to clipboard
val
problem
:
Problem
Functions
get
Or
Handle
Link copied to clipboard
fun
getOrHandle
(
default
:
(
CommandResult.Failure
<
T
,
C
,
V
>
)
->
CommandResult.Success
<
T
,
C
,
V
>
)
:
CommandResult.Success
<
T
,
C
,
V
>
or
Throw
Link copied to clipboard
fun
orThrow
(
)
:
CommandResult.Success
<
T
,
C
,
V
>