package com.walker.infrastructure.core.domx;
|
|
import com.walker.infrastructure.core.NestedRuntimeException;
|
import org.slf4j.Logger;
|
import org.slf4j.LoggerFactory;
|
|
public class XmlParseException extends NestedRuntimeException {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = -5628704450991157097L;
|
|
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
private String xmlContent;
|
|
public XmlParseException(String xml){
|
super("xml parse error!");
|
xmlContent = xml;
|
logger.warn(xmlContent);
|
}
|
|
// public XmlParseException(String msg){
|
// super(msg);
|
// }
|
|
public XmlParseException(String msg, Throwable ex){
|
super(msg, ex);
|
}
|
|
public XmlParseException(String msg, Throwable ex, String xml){
|
super(msg, ex);
|
xmlContent = xml;
|
}
|
}
|