본 내용은 Swift 공식 문서에 기반하여 작성되었습니다. https://docs.swift.org/swift-book/LanguageGuide/TheBasics.html Error Handling 프로그램 실행 시 혹시나 발생할 수 있는 에러에 대한 처리 func canThrowAnError() throws { // this fuction may or may not throw an error } // 이 함수는 아래와 같이 do-try-catch 를 통해 사용하면 특정 Error에 대해 처리할 수 있다. do { try canThrowAnError() // no error was thrown } catch { // an error was thrown } [예시] func makeASandwich() t..