Examples of XmlException


Examples of com.lightcrafts.utils.xml.XMLException

        }
        catch (XMLException e) {
            // Give up.
        }
        // Nothing worked out:
        throw new XMLException("No valid SaveOptions data");
    }
View Full Code Here

Examples of com.lightcrafts.utils.xml.XMLException

        void saveMarker(XmlNode node) {
            node.setAttribute("type", getName());
        }
        void verifyMarker(XmlNode node) throws XMLException {
            if (! node.getAttribute("type").equals(getName())) {
                throw new XMLException("Unexpected SaveOptions Options class");
            }
        }
View Full Code Here

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

Examples of com.robustaweb.library.commons.exception.XmlException

        Element root = (Element) n;
        return root;
      }
    }

    throw new XmlException("Can't find any Root Element");
  }
View Full Code Here

Examples of com.robustaweb.library.commons.exception.XmlException

   */
  @Override
  public Element getElement(String nodeName) throws XmlException {
    Element elt = getOptionalElement(nodeName);
    if (elt == null) {
      throw new XmlException("Can't find element : " + nodeName);
    } else {
      return elt;
    }
  }
View Full Code Here

Examples of dk.brics.xact.XMLException

          if (type != null) {
            String t = gap_types.get(gap);
            if (t == null)
              gap_types.put(gap, type);
            else if (!t.equals(type))
              throw new XMLException("type mismatch for gap " + gap, origin);
          }
        }
      });
    }
    return new XMLGraphFragment(top, tgaps, agaps, gap_types);
View Full Code Here

Examples of eu.artofcoding.beetlejuice.xml.XMLException

            Unmarshaller unmarshaller = jaxbContext.createUnmarshaller();
            // unmarshal an instance document into a tree of Java content
            // objects composed of classes from the package.
            odisee = (T) unmarshaller.unmarshal(new FileInputStream(file));
        } catch (JAXBException e) {
            throw new XMLException(e);
        } catch (IOException e) {
            throw new XMLException(e);
        }
        return odisee;
    }
View Full Code Here

Examples of fb.xml.XMLException

  }

  public void connectParameter(FBElement obj) throws FBRManagementException,
      FBDataTypeException, XMLException {
    if (!(obj instanceof FBMConnection)) {
      throw new XMLException("INVALID_OBJECT");
    } else {
      FBMConnection cnxn = (FBMConnection) obj;
      String dst[] = unpackHierName(cnxn.getDestination());
      fbNamed(dst[0]).connectParameter(dst[1], cnxn.getSource());
      return;
View Full Code Here

Examples of net.rootnode.loomchild.util.exceptions.XmlException

      SAXParser saxParser = parserFactory.newSAXParser();
      XMLReader xmlReader = saxParser.getXMLReader();
      xmlReader.setEntityResolver(new IgnoreDTDEntityResolver());
      return xmlReader;
    } catch (ParserConfigurationException e) {
      throw new XmlException("SAX Parser configuration error.", e);
    } catch (SAXException e) {
      throw new XmlException("Error creating XMLReader.", e);
    }
  }
View Full Code Here

Examples of net.sourceforge.segment.util.XmlException

    if (version == SrxVersion.VERSION_1_0) {
      transformer = new Srx1Transformer();
    } else if (version == SrxVersion.VERSION_2_0) {
      transformer = new Srx2Transformer();
    } else {
      throw new XmlException("Unsupported SRX version: \"" + version
          + "\".");
    }

    return transformer;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.