
org.openas2.lib.util.XMLException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openas2-server Show documentation
Show all versions of openas2-server Show documentation
Open source implementation of the AS2 standard for signed encrypted and compressed document transfer
package org.openas2.lib.util;
import org.dom4j.Element;
public class XMLException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
private Element element;
public XMLException() {
super();
}
public XMLException(Element element, String message) {
super(message);
this.element = element;
}
public XMLException(Element element, Throwable cause) {
super(cause);
this.element = element;
}
public XMLException(Element element, String message, Throwable cause) {
super(message, cause);
this.element = element;
}
public String getMessage() {
StringBuffer msgBuf = new StringBuffer();
String superMsg = super.getMessage();
if (superMsg != null) {
msgBuf.append(superMsg);
}
if (element != null) {
if (msgBuf.length() > 0) {
msgBuf.append(" - ");
}
msgBuf.append(element.asXML());
}
return msgBuf.toString();
}
public Element getElement() {
return element;
}
public void setElement(Element element) {
this.element = element;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy