blob: 060bb618df160abdd5f05ae4ab670d7281be908e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package de.thedevstack.conversationsplus.xmpp.exceptions;
import eu.siacs.conversations.xml.Element;
/**
*
*/
public class MissingRequiredContentException extends XmppException {
private String elementName;
private String namespace;
public MissingRequiredContentException(String elementName, Element context) {
super(context);
this.elementName = elementName;
}
public MissingRequiredContentException(String elementName, String namespace, Element context) {
this(elementName, context);
this.namespace = namespace;
}
@Override
public String getMessage() {
return "Missing required element content " + ((namespace != null) ? namespace + ":" : "") + elementName + " in context " + getContext();
}
}
|