Scanbot SDK – Kotlin Multiplatform
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Scanbot SDK – Kotlin Multiplatform
kmp-barcode-sdk
/
io.scanbot.sdk.kmp.utils
/
Result
/
Failure
Failure
data
class
Failure
(
val
exception
:
Throwable
)
:
Result
<
Nothing
>
Members
Constructors
Failure
Link copied to clipboard
constructor
(
exception
:
Throwable
)
Properties
exception
Link copied to clipboard
val
exception
:
Throwable
is
Failure
Link copied to clipboard
val
isFailure
:
Boolean
is
Success
Link copied to clipboard
val
isSuccess
:
Boolean
Functions
exception
Or
Null
Link copied to clipboard
fun
exceptionOrNull
(
)
:
Throwable
?
fold
Link copied to clipboard
inline
fun
<
R
>
fold
(
onSuccess
:
(
Nothing
)
->
R
,
onFailure
:
(
Throwable
)
->
R
)
:
R
get
Or
Null
Link copied to clipboard
fun
getOrNull
(
)
:
Nothing
?
get
Or
Throw
Link copied to clipboard
fun
getOrThrow
(
)
:
Nothing
map
Link copied to clipboard
inline
fun
<
R
>
map
(
transform
:
(
Nothing
)
->
R
)
:
Result
<
R
>
map
Catching
Link copied to clipboard
inline
fun
<
R
>
mapCatching
(
transform
:
(
Nothing
)
->
R
)
:
Result
<
R
>
on
Failure
Link copied to clipboard
inline
fun
onFailure
(
action
:
(
Throwable
)
->
Unit
)
:
Result
<
Nothing
>
on
Success
Link copied to clipboard
inline
fun
onSuccess
(
action
:
(
Nothing
)
->
Unit
)
:
Result
<
Nothing
>
recover
Link copied to clipboard
inline
fun
recover
(
transform
:
(
Throwable
)
->
Nothing
)
:
Result
<
Nothing
>
recover
Catching
Link copied to clipboard
inline
fun
recoverCatching
(
transform
:
(
Throwable
)
->
Nothing
)
:
Result
<
Nothing
>