mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Introduce StanzaBuilder
As first step to immutable Stanza types.
This commit is contained in:
parent
926c5892ad
commit
5db6191110
134 changed files with 2576 additions and 764 deletions
|
@ -517,8 +517,8 @@ public class XMPPBOSHConnection extends AbstractXMPPConnection {
|
|||
if ("urn:ietf:params:xml:ns:xmpp-streams".equals(parser.getNamespace(null))) {
|
||||
throw new StreamErrorException(PacketParserUtils.parseStreamError(parser));
|
||||
} else {
|
||||
StanzaError.Builder builder = PacketParserUtils.parseError(parser);
|
||||
throw new XMPPException.XMPPErrorException(null, builder.build());
|
||||
StanzaError stanzaError = PacketParserUtils.parseError(parser);
|
||||
throw new XMPPException.XMPPErrorException(null, stanzaError);
|
||||
}
|
||||
default:
|
||||
parseAndProcessNonza(parser);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue