arrow-core
1.0.2-alpha.43
common
arrow-core
/
arrow.core
/
Option
/
Companion
/
catch
catch
common
@
JvmStatic
@
JvmName
(
name
=
"tryCatchOrNone"
)
inline
fun
<
A
>
catch
(
f
:
(
)
->
A
)
:
Option
<
A
>
Content copied to clipboard
Ignores exceptions and returns None if one is thrown
@
JvmStatic
@
JvmName
(
name
=
"tryCatch"
)
inline
fun
<
A
>
catch
(
recover
:
(
Throwable
)
->
Option
<
A
>
,
f
:
(
)
->
A
)
:
Option
<
A
>
Content copied to clipboard