Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift do catch

do {
    let sandwich = try makeMeSandwich(kitchen)
} catch let error {
    print(error.localizedDescription)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #catch
ADD COMMENT
Topic
Name
6+2 =