tryCatchBoolean

inline fun tryCatchBoolean(block: () -> Unit): Boolean

tryCatchBoolean used when you want to return false if an exception is thrown.

Example:

tryCatchBoolean {
...
throw Exception("throw")
} // false

tryCatchBoolean {
...
} // true

Since

1.1.0

See also