tryCatch

abstract fun <T> tryCatch(config: ExceptionCatcher<T>.() -> Unit): T?

配置 try-catch 语句.

Receiver

Return

try-catch语句返回的结果

Parameters

T

返回值类型

config

配置 try-catch 的函数