Mobile/Swift

예외처리

꼰대코더 2024. 2. 14. 23:39

do {

    let result = try someRiskyWork()

} catch {

    print("Handle errors here")

}

'Mobile > Swift' 카테고리의 다른 글

class  (0) 2024.02.15
struct  (0) 2024.02.15
function  (0) 2024.02.14
Loops  (0) 2024.02.14
switch  (0) 2024.02.14