toggle menu
kotbase
3.0
3.1
3.0
apple
switch theme
search in API
couchbase-lite
/
kotbase.ext
/
wrapError
wrap
Error
apple
fun
<
R
,
E
:
Exception
>
wrapError
(
exceptionFactory
:
NSError
.
(
)
->
E
,
action
:
(
error
:
CPointer
<
ObjCObjectVar
<
NSError
?
>
>
)
->
R
)
:
R
(
source
)
fun
<
R
>
wrapError
(
action
:
(
error
:
CPointer
<
ObjCObjectVar
<
NSError
?
>
>
)
->
R
)
:
R
(
source
)