1package im.conversations.android.xmpp;
 2
 3import im.conversations.android.xmpp.model.pubsub.error.PubSubError;
 4import im.conversations.android.xmpp.model.stanza.Iq;
 5
 6public class PreconditionNotMetException extends PubSubErrorException {
 7
 8    public PreconditionNotMetException(final Iq response) {
 9        super(response);
10        if (this.pubSubError instanceof PubSubError.PreconditionNotMet) {
11            return;
12        }
13        throw new AssertionError(
14                "This exception should only be constructed for PreconditionNotMet errors");
15    }
16}