stick
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
stick
stick-core
/
com.zombachu.stick
/
ParsingResult
/
StateError
State
Error
interface
StateError
<
T
>
:
ParsingResult
<
T
>
,
Result.Failure
<
T
>
Inheritors
IllegalStateError
Members
Members & Extensions
Properties
feedback
Link copied to clipboard
abstract
val
feedback
:
(
)
->
Feedback
<
out
Tuple
<
String
>
>
Functions
handle
Link copied to clipboard
inline
fun
<
T
,
R
>
Result
<
T
>
.
handle
(
onSuccess
:
(
Result.Success
<
T
>
)
->
R
,
onFailure
:
(
Result.Failure
<
T
>
)
->
R
)
:
R
is
Success
Link copied to clipboard
fun
<
T
>
Result
<
T
>
.
isSuccess
(
)
:
Boolean
propagate
Error
Link copied to clipboard
inline
fun
<
T2
>
Result
<
*
>
.
propagateError
(
onFailure
:
(
Result.Failure
<
T2
>
)
->
Nothing
)
unsafe
Cast
Link copied to clipboard
fun
<
T2
>
Result.Failure
<
*
>
.
unsafeCast
(
)
:
Result.Failure
<
T2
>
value
Or
Propagate
Error
Link copied to clipboard
inline
fun
<
T
,
T2
>
Result
<
T
>
.
valueOrPropagateError
(
onFailure
:
(
Result.Failure
<
T2
>
)
->
Nothing
)
:
T