package de.thedevstack.conversationsplus.xmpp.stanzas; import de.thedevstack.conversationsplus.xml.Element; /** */ public class ErrorIqPacket extends IqPacket { public final static String NAMESPACE = "urn:ietf:params:xml:ns:xmpp-stanzas"; public ErrorIqPacket(IqErrorCondition condition) { super(IqPacket.TYPE.ERROR); final Element error = this.addChild("error"); error.setAttribute("type", condition.getType().toString()); error.addChild(condition.toString(), NAMESPACE); } }