aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/xmpp/exceptions/IqPacketErrorException.java
blob: 65e0268866a23b838ec2c1dcce8dca26df7769d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package de.thedevstack.conversationsplus.xmpp.exceptions;

import eu.siacs.conversations.xml.Element;

/**
 * Created by steckbrief on 22.08.2016.
 */
public class IqPacketErrorException extends XmppException {
    private final String iqErrorText;

    public IqPacketErrorException(Element context, String errorMessage) {
        super(context);
        this.iqErrorText = errorMessage;
    }

    @Override
    public String getMessage() {
        return this.iqErrorText + " in context: " + this.getContext();
    }
}