public void warning(SAXParseException exception) throws SAXException {
   try {
     super.warning(exception);
   } catch (SAXException e) {
     throw new SAXException(new UserException(e));
   }
 }
 public void fatalError(SAXParseException exception) throws SAXException {
   try {
     super.fatalError(exception);
   } catch (SAXException e) {
     throw new SAXException(new UserException(e));
   }
 }
 public void parse(InputSource input) throws IOException, SAXException {
   try {
     LocationFilter handler =
         new LocationFilter(new ErrorFilter(contentHandler, ceh, localizer), systemId);
     transformer.transform(transformSource, new SAXResult(handler));
     SAXException exception = handler.getException();
     if (exception != null) throw exception;
   } catch (TransformerException e) {
     if (e.getException() instanceof IOException) throw (IOException) e.getException();
     throw ValidatorImpl.toSAXException(e);
   }
   if (ceh.getHadErrorOrFatalError()) throw new SAXException(new IncorrectSchemaException());
 }
Beispiel #4
0
 public Schema getSchema() throws IncorrectSchemaException, SAXException {
   if (validator == null || ceh.getHadErrorOrFatalError())
     throw new IncorrectSchemaException();
   for (Enumeration enum = modeMap.keys(); enum.hasMoreElements();) {
 public void parse(InputSource input) throws SAXException, IOException {
   reader.parse(input);
   if (ceh.getHadErrorOrFatalError()) throw new SAXException(new IncorrectSchemaException());
 }