blob: 8b21cb9c3b7356f2fced697bb7a04c07d32ee8de (
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 de.thedevstack.conversationsplus.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();
}
}
|