Arrow
Toggle table of contents
2.0.0
common
Platform filter
common
Switch theme
Search in API
Arrow
arrow-core
/
arrow.core
/
Option
/
Companion
/
catch
catch
@
JvmStatic
@
JvmName
(
name
=
"tryCatchOrNone"
)
inline
fun
<
A
>
catch
(
f
:
SingletonRaise
<
None
>
.
(
)
->
A
)
:
Option
<
A
>
Ignores exceptions and returns None if one is thrown
@
JvmStatic
@
JvmName
(
name
=
"tryCatch"
)
inline
fun
<
A
>
catch
(
recover
:
(
Throwable
)
->
Option
<
A
>
,
f
:
SingletonRaise
<
None
>
.
(
)
->
A
)
:
Option
<
A
>