toggle menu
seam-phone-sdk-android
1.9.38
androidJvm
switch theme
search in API
common
/
co.seam.common.models
/
SeamFailure
Seam
Failure
@
Serializable
@
SerialName
(
value
=
"error"
)
data
class
SeamFailure
<
T
>
(
val
error
:
SeamError
)
:
SeamResult
<
T
>
Members
Constructors
Seam
Failure
Link copied to clipboard
constructor
(
error
:
SeamError
)
Properties
error
Link copied to clipboard
val
error
:
SeamError
is
Failure
Link copied to clipboard
val
isFailure
:
Boolean
is
Success
Link copied to clipboard
val
isSuccess
:
Boolean
Functions
and
Then
Link copied to clipboard
inline
fun
<
R
>
andThen
(
transform
:
(
T
)
->
SeamResult
<
R
>
)
:
SeamResult
<
R
>
as
Throwable
Link copied to clipboard
fun
asThrowable
(
)
:
Throwable
get
Error
Or
Null
Link copied to clipboard
fun
getErrorOrNull
(
)
:
SeamError
?
get
Error
Or
Throw
Link copied to clipboard
fun
getErrorOrThrow
(
)
:
SeamError
get
Or
Null
Link copied to clipboard
fun
getOrNull
(
)
:
T
?
get
Or
Throw
Link copied to clipboard
fun
getOrThrow
(
)
:
T
map
Link copied to clipboard
inline
fun
<
R
>
map
(
transform
:
(
T
)
->
R
)
:
SeamResult
<
R
>
or
Else
Link copied to clipboard
fun
orElse
(
other
:
T
)
:
T
transmute
Link copied to clipboard
fun
<
R
>
transmute
(
)
:
SeamFailure
<
R
>