1 16 package org.apache.commons.jelly.util; 17 18 import org.xml.sax.Locator ; 19 20 26 public class SAXParseException extends org.xml.sax.SAXParseException { 27 public SAXParseException(String message, Locator locator) { 28 super(message, locator); 29 } 30 31 public SAXParseException(String message, Locator locator, Exception e) { 32 super(message, locator, e); 33 } 34 35 public SAXParseException(String message, String publicId, String systemId, int lineNumber, int columnNumber) { 36 super(message, publicId, systemId, lineNumber, columnNumber); 37 } 38 39 public SAXParseException(String message, String publicId, String systemId, int lineNumber, int columnNumber, Exception e) { 40 super(message, publicId, systemId, lineNumber, columnNumber, e); 41 } 42 43 public Throwable getCause() { 45 return getException(); 46 } 47 48 public String toString() { 50 String s = getClass().getName(); 51 String message = getLocalizedMessage(); 52 return (message != null) ? (s + ": " + message) : s; 53 } 54 } 55 | Popular Tags |