/** * INTERNAL: */ public static XMLParseException exceptionCreatingXMLReader(URL url, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {url}, cause, EXCEPTION_CREATING_XML_READER); }
/** * INTERNAL: * TopLink exceptions should only be thrown by TopLink. */ protected XMLParseException(String message, Throwable internalException) { super(message); setInternalException(internalException); }
private static XMLParseException getXMLParseException(Object[] args, Exception cause, int errorCode) { XMLParseException parseException = new XMLParseException(ExceptionMessageGenerator.buildMessage(XMLParseException.class, errorCode, args), cause); parseException.setErrorCode(errorCode); return parseException; } }
sp = spf.newSAXParser(); } catch (javax.xml.parsers.ParserConfigurationException exc){ throw XMLParseException.exceptionCreatingSAXParser(baseURL, exc); } catch (org.xml.sax.SAXException exc){ throw XMLParseException.exceptionCreatingSAXParser(baseURL, exc); xmlReader.setErrorHandler(xmlErrorHandler); } catch (org.xml.sax.SAXException exc){ throw XMLParseException.exceptionCreatingXMLReader(baseURL, exc);
private static XMLParseException getXMLParseException(Object[] args, Exception cause, int errorCode) { XMLParseException parseException = new XMLParseException(ExceptionMessageGenerator.buildMessage(XMLParseException.class, errorCode, args), cause); parseException.setErrorCode(errorCode); return parseException; } }
/** * INTERNAL: */ public static XMLParseException exceptionReadingXMLDocument(String xmlDocument, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {xmlDocument}, cause, EXCEPTION_READING_XML_DOCUMENT); }
private static XMLParseException getXMLParseException(Object[] args, Exception cause, int errorCode) { XMLParseException parseException = new XMLParseException(ExceptionMessageGenerator.buildMessage(XMLParseException.class, errorCode, args), cause); parseException.setErrorCode(errorCode); return parseException; } }
/** * INTERNAL: * TopLink exceptions should only be thrown by TopLink. */ protected XMLParseException(String message, Throwable internalException) { super(message); setInternalException(internalException); }
/** * INTERNAL: */ public static XMLParseException exceptionCreatingSAXParser(URL url, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {url}, cause, EXCEPTION_CREATING_SAX_PARSER); }
/** * INTERNAL: * TopLink exceptions should only be thrown by TopLink. */ protected XMLParseException(String message, Throwable internalException) { super(message); setInternalException(internalException); }
/** * INTERNAL: */ public static XMLParseException exceptionCreatingDocumentBuilder(String xmlDocument, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {xmlDocument}, cause, EXCEPTION_CREATING_DOCUMENT_BUILDER); }
/** * INTERNAL: */ public static XMLParseException exceptionCreatingDocumentBuilder(String xmlDocument, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {xmlDocument}, cause, EXCEPTION_CREATING_DOCUMENT_BUILDER); }
/** * INTERNAL: */ public static XMLParseException exceptionCreatingXMLReader(URL url, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {url}, cause, EXCEPTION_CREATING_XML_READER); }
/** * INTERNAL: */ public static XMLParseException exceptionSettingSchemaSource(URL baseUrl, URL schemaUrl, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {baseUrl, schemaUrl}, cause, EXCEPTION_SETTING_SCHEMA_SOURCE); }
/** * INTERNAL: */ public static XMLParseException exceptionCreatingDocumentBuilder(String xmlDocument, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {xmlDocument}, cause, EXCEPTION_CREATING_DOCUMENT_BUILDER); }
/** * INTERNAL: */ public static XMLParseException exceptionReadingXMLDocument(String xmlDocument, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {xmlDocument}, cause, EXCEPTION_READING_XML_DOCUMENT); }
/** * INTERNAL: */ public static XMLParseException exceptionReadingXMLDocument(String xmlDocument, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {xmlDocument}, cause, EXCEPTION_READING_XML_DOCUMENT); }
/** * INTERNAL: */ public static XMLParseException exceptionCreatingXMLReader(URL url, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {url}, cause, EXCEPTION_CREATING_XML_READER); }
/** * INTERNAL: */ public static XMLParseException exceptionSettingSchemaSource(URL baseUrl, URL schemaUrl, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {baseUrl, schemaUrl}, cause, EXCEPTION_SETTING_SCHEMA_SOURCE); }
/** * INTERNAL: */ public static XMLParseException exceptionCreatingSAXParser(URL url, Exception cause) { return XMLParseException.getXMLParseException(new Object[] {url}, cause, EXCEPTION_CREATING_SAX_PARSER); }