shikeying
2024-01-11 3b67e947e36133e2a40eb2737b15ea375e157ea0
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
27
28
29
30
31
32
33
34
35
36
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;
    }
}