It would be good to make XMPPError and PubSubError to conform to LocalizedError protocol to return a message and name of the error in user-friendly way.
XMPPError
PubSubError
LocalizedError
It would be good to make
XMPPErrorandPubSubErrorto conform toLocalizedErrorprotocol to return a message and name of the error in user-friendly way.