CNContactStore's executeSaveRequest(_:)
method throws an error according to the documentation.
I am trying to catch this error in a do/catch
, but I cannot figure out what error I need to catch.
do{
try store.executeSaveRequest(saveRequest)
} catch *???* {
//alert the user
}
What is supposed to replace the ???'s in the code above?