1 package net.sf.cantina.exceptions; 2 3 import org.xml.sax.SAXParseException; 4 5 /*** 6 * means invalid xml, maintains a list of parsing errors. 7 * @author Stephane JAIS 8 */ 9 public class InvalidXmlException 10 extends CantinaException 11 { 12 private SAXParseException[] errors; 13 14 public SAXParseException[] getErrors() 15 { 16 return errors; 17 } 18 19 public InvalidXmlException() 20 { 21 super(); 22 } 23 24 public InvalidXmlException(String s) 25 { 26 super(s); 27 } 28 29 public InvalidXmlException(String s, Exception e) 30 { 31 super(s, e); 32 } 33 34 public InvalidXmlException(String s, SAXParseException[] errors) 35 { 36 super (s); 37 this.errors = errors; 38 } 39 }