fun catchDecl(types: List<TypeName>, variableName: String, block: CodeFunc): TryFlow
Render a catch block.
The exception variable is declared final.
types
- Exception types to catch. More than one type will render a multi-catch.
variableName
- Exception variable name.
fun catchDecl(type: TypeName, variableName: String, block: CodeFunc): TryFlow
fun catchDecl(type: KClass<out Throwable>, variableName: String, block: CodeFunc): TryFlow
Render a catch block.
The exception variable is declared final.