aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/thedevstack/conversationsplus/xmpp/exceptions/IqPacketErrorException.java
blob: d4d932b7341ca37f4d72cc6a6b00b83012df402b (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 de.thedevstack.conversationsplus.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();
    }
}