XMPPError.Condition should hold an optional text field, as some conditions (e.g. redirect) could contain extra text.
I first thought about making XMPPError.Condition an enum, but the fact that some conditions could carry a (non-unique) text makes this thought invalid.
XMPPError.Condition should hold an optional text field, as some conditions (e.g. redirect) could contain extra text.
I first thought about making XMPPError.Condition an enum, but the fact that some conditions could carry a (non-unique) text makes this thought invalid.
http://xmpp.org/rfcs/rfc6120.html#schemas-stanzaerror