Package com.microstar.xml

Examples of com.microstar.xml.XmlException


   * @exception java.lang.Exception Derived methods may throw exceptions.
   */
  public void error (String message, String systemId, int line, int column)
    throws XmlException, java.lang.Exception
  {
    throw new XmlException(message, systemId, line, column);
  }
View Full Code Here


    * @exception java.lang.Exception Derived methods may throw exceptions.
    */
  public void error (String message, String systemId, int line, int column)
    throws XmlException, java.lang.Exception
  {
    throw new XmlException(message, systemId, line, column);
  }
View Full Code Here

    * @exception java.lang.Exception Derived methods may throw exceptions.
    */
  public void error (String message, String systemId, int line, int column)
    throws XmlException, java.lang.Exception
  {
    throw new XmlException(message, systemId, line, column);
  }
View Full Code Here

    * @exception java.lang.Exception Derived methods may throw exceptions.
    */
  public void error (String message, String systemId, int line, int column)
    throws XmlException, java.lang.Exception
  {
    throw new XmlException(message, systemId, line, column);
  }
View Full Code Here

    {
      public void run()
      {
        if(exception[0] instanceof XmlException)
        {
          XmlException xe = (XmlException)
            exception[0];

          int line = xe.getLine();
          String path = jEdit.getProperty(
            "plugin-manager.export-url");
          String message = xe.getMessage();
          Log.log(Log.ERROR,this,path + ":" + line
            + ": " + message);
          String[] pp = { path,
            String.valueOf(line),
            message };
View Full Code Here

        } else {
            // Parse from a file
            File file = document.getFile();

            if (file == null) {
                throw new XmlException("Document contains no URL or File", "",
                        0, 0);
            }

            FileReader in = new FileReader(file);
            parse(document, in);
View Full Code Here

     @exception XmlException If the name or value is null.
     */
    public void attribute(String name, String value, boolean specified)
            throws XmlException {
        if (name == null) {
            throw new XmlException("Attribute has no name",
                    _currentExternalEntity(), _getLineNumber(),
                    _getColumnNumber());
        }

        // If the current namespace is _AUTO_NAMESPACE, then look up the
View Full Code Here

            if (elementName.equals("configure")) {
                // Count configure tags so that they can nest.
                _configureNesting--;

                if (_configureNesting < 0) {
                    throw new XmlException(
                            "Internal Error: _configureNesting is "
                                    + _configureNesting
                                    + " which is <0, which indicates a nesting bug",
                            _currentExternalEntity(), _getLineNumber(),
                            _getColumnNumber());
                }
            } else if (elementName.equals("doc")) {
                // Count doc tags so that they can nest.
                _docNesting--;

                if (_docNesting < 0) {
                    throw new XmlException("Internal Error: _docNesting is "
                            + _docNesting
                            + " which is <0, which indicates a nesting bug",
                            _currentExternalEntity(), _getLineNumber(),
                            _getColumnNumber());
                }
View Full Code Here

            }
        } catch (Throwable throwable) {
            // Ignore any exceptions here.
        }

        throw new XmlException(message, currentExternalEntity, line, column);
    }
View Full Code Here

                }
            }
        }

        if (input == null) {
            throw new XmlException(errorMessage.toString(),
                    _currentExternalEntity(), _getLineNumber(),
                    _getColumnNumber());
        }

        // If we get here, then result cannot possibly be null.
View Full Code Here

TOP

Related Classes of com.microstar.xml.XmlException

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.