toggle menu
Arrow
1.2.4
common
switch theme
search in API
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
)