Better error handling when exceptions are thrown

What could be improved

The method channels throw PlatformExceptions when something goes wrong, but it would be cleaner if we returned a formatted exception in some cases.

The Twilio SDK can also throw exceptions, maybe we should also check for those.

Why should this be improved

For easier error handling of the plugin.

Any risks?

It will be a breaking change, but one that allows developers to easily catch different exceptions, without having to look into them.

More information

Edited Jun 10, 2020 by ..:: Mark Veenstra ::..
Assignee Loading
Time tracking Loading