I'm using this class to send email messages from my app. Its setToRecipients method detects invalid email addresses (such as "abc.efg"), and the debugger tells me when this happens. But the only result visible to the user is that the email composition view opens with a blank address field.
What I'd like to do is intercept this error somehow, so I can tell my users. I put the method in a try block, but it doesn't throw any errors. How can I find out when this error occurs? I can't find anything in the documentation about it.
P.S. The message displayed on the console looks like this:
2016-07-14 17:44:09.381 MyAppName[7187:1851045] abc.efg is not a valid email address.
Is it possible to read this in my code somehow?