Arrow
1.1.5
common
arrow-core
/
arrow.core
/
Option
/
Companion
/
catch
catch
@
JvmStatic
@
JvmName
(
name
=
"tryCatchOrNone"
)
inline
fun
<
A
>
catch
(
f
:
(
)
->
A
)
:
Option
<
A
>
(
source
)
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
>
(
source
)