Package org.apache.xerces.xni

Examples of org.apache.xerces.xni.XNIException


            if (fLexicalHandler != null) {
                fLexicalHandler.startCDATA();
            }
        }
        catch (SAXException e) {
            throw new XNIException(e);
        }

    } // startCDATA()
View Full Code Here


            if (fLexicalHandler != null) {
                fLexicalHandler.endCDATA();
            }
        }
        catch (SAXException e) {
            throw new XNIException(e);
        }

    } // endCDATA()
View Full Code Here

            if (fLexicalHandler != null) {
                fLexicalHandler.comment(text.ch, 0, text.length);
            }
        }
        catch (SAXException e) {
            throw new XNIException(e);
        }

    } // comment(XMLString)
View Full Code Here

                _errors.add(ex);
                throw ex;
            }

            // Should not reach here, but just in case...
            throw new XNIException("Unknown XSD error state; domain=" + domain + ", key=" +key);
        }
View Full Code Here

                _errors.add(ex);
                throw ex;
            }

            // Should not reach here, but just in case...
            throw new XNIException("Unknown XSD error state; domain=" + domain + ", key=" +key);
        }
View Full Code Here

      __log.debug("Captured: "+systemId);
      _capture.put(systemId, data);
    } catch (URISyntaxException use) {
      __log.error("Invalid URI: " + resourceIdentifier.getLiteralSystemId());
      throw new XNIException(use);
    }


    // re-create the InputSource since reading exhausted the XML stream
    return _resolver.resolveEntity(resourceIdentifier);
View Full Code Here

                _errors.add(ex);
                throw ex;
            }

            // Should not reach here, but just in case...
            throw new XNIException("Unknown XSD error state; domain=" + domain + ", key=" +key);
        }
View Full Code Here

                _errors.add(ex);
                throw ex;
            }

            // Should not reach here, but just in case...
            throw new XNIException("Unknown XSD error state; domain=" + domain + ", key=" +key);
        }
View Full Code Here

      if ("script".equalsIgnoreCase(elem.rawname)) {
        String value = attrs.getValue("type");
        String osmlTagName = SCRIPT_TYPE_TO_OSML_TAG.get(value);
        if (osmlTagName != null) {
          if (currentOsmlTag != null) {
            throw new XNIException("Nested OpenSocial script elements");
          }
          currentOsmlTag = new QName(null, osmlTagName, osmlTagName, null);
          if (scriptContent == null) {
            scriptContent = new StringBuilder();
          }
View Full Code Here

    /** Creates an XNIException from a SAXException.
        NOTE:  care should be taken *not* to call this with a SAXParseException; this will
        lose information!!! */
    protected static XNIException createXNIException(SAXException exception) {
        return new XNIException(exception.getMessage(),
                                     exception.getException());
    } // createXNIException(SAXException):XMLParseException
View Full Code Here

TOP

Related Classes of org.apache.xerces.xni.XNIException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.