MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / decodeStreamError

Method decodeStreamError

src/main/java/xmpp/XmppError.java:212–215  ·  view source on GitHub ↗
(JabberDataBlock error)

Source from the content-addressed store, hash-verified

210 }
211
212 public static XmppError decodeStreamError(JabberDataBlock error) {
213 if (!error.getTagName().equals("error")) throw new IllegalArgumentException();
214 return decodeError(error, "urn:ietf:params:xml:ns:xmpp-streams");
215 }
216
217 public static XmppError decodeSaslError(JabberDataBlock error) {
218 if (!error.getTagName().equals("failure")) throw new IllegalArgumentException();

Callers 1

tagEndMethod · 0.95

Calls 3

decodeErrorMethod · 0.95
getTagNameMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected