/*
 * Decompiled with CFR 0.152.
 */
package org.jivesoftware.smack.packet;

import org.jivesoftware.smack.packet.IQ;
import org.jivesoftware.smack.packet.SimpleIQ;
import org.jivesoftware.smack.packet.XMPPError;
import org.jivesoftware.smack.util.Objects;

public class ErrorIQ
extends SimpleIQ {
    public static final String ELEMENT = "error";

    public ErrorIQ(XMPPError xmppError) {
        super(ELEMENT, null);
        Objects.requireNonNull(xmppError, "XMPPError must not be null");
        this.setType(IQ.Type.error);
        this.setError(xmppError);
    }
}
