001    package railo.runtime.exp;
002    
003    import org.w3c.dom.DOMException;
004    import org.xml.sax.SAXException;
005    
006    
007    /**
008     * XmL Exception
009     */
010    public final class XMLException extends ExpressionException {
011    
012            /**
013             * constructor of the class
014             * @param message
015             */
016            public XMLException(String message) {
017                    super(message);
018            }
019    
020            /**
021             * constructor of the class
022             * @param message
023             * @param detail
024             */
025            public XMLException(String message, String detail) {
026                    super(message, detail);
027                    
028            }
029            
030        /**
031         * @param e
032         */
033        public XMLException(SAXException e) {
034                    super(e.getMessage());
035                    this.setStackTrace(e.getStackTrace());
036        }
037    
038        /**
039         * @param e
040         */
041        public XMLException(DOMException e) {
042                    super(e.getMessage());
043                    this.setStackTrace(e.getStackTrace());
044        }
045    }