My iOS app stops running after a run-time error occurs. I'm catching the error as an exception. I would like the app to continue running to the next steps after error handling. Any advises how to do this?
do {
guard let ps: Element = try! docu.getElementById("product-name")! else { ide = "" }
if ps != nil {
ide = (try ps.text())
}
} catch {
print("error")
ide = ""
}
See Question&Answers more detail:os