Tabnine Logo
XmlException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.shindig.common.xml.XmlException
constructor

Best Java code snippets using org.apache.shindig.common.xml.XmlException.<init> (Showing top 11 results out of 315)

origin: org.apache.shindig/shindig-common

/**
 * Attempts to parse the input xml into a single element.
 * @param xml
 * @return The document object
 * @throws XmlException if a parse error occured.
 */
public static Element parse(String xml) throws XmlException {
 DocumentBuilder builder = null;
 try {
  builder = getBuilder();
  InputSource is = new InputSource(new StringReader(xml.trim()));
  return builder.parse(is).getDocumentElement();
 } catch (SAXParseException e) {
  throw new XmlException(
    e.getMessage() + " At: (" + e.getLineNumber() + ',' + e.getColumnNumber() + ')', e);
 } catch (SAXException e) {
  throw new XmlException(e);
 } catch (ParserConfigurationException e) {
  throw new XmlException(e);
 } catch (IOException e) {
  throw new XmlException(e);
 } finally {
  // Remove reference to XmlUtils class to insure classes can be unloaded
  if (builder != null) {
   builder.setErrorHandler(null);
  }
 }
}
origin: org.gatein.shindig/shindig-common

/**
 * Attempts to parse the input xml into a single element.
 * @param xml
 * @return The document object
 * @throws XmlException if a parse error occured.
 */
public static Element parse(String xml) throws XmlException {
 DocumentBuilder builder = null;
 try {
  builder = getBuilder();
  InputSource is = new InputSource(new StringReader(xml.trim()));
  return builder.parse(is).getDocumentElement();
 } catch (SAXParseException e) {
  throw new XmlException(
    e.getMessage() + " At: (" + e.getLineNumber() + ',' + e.getColumnNumber() + ')', e);
 } catch (SAXException e) {
  throw new XmlException(e);
 } catch (ParserConfigurationException e) {
  throw new XmlException(e);
 } catch (IOException e) {
  throw new XmlException(e);
 } finally {
  // Remove reference to XmlUtils class to insure classes can be unloaded
  if (builder != null) {
   builder.setErrorHandler(null);
  }
 }
}
origin: apache/shindig

/**
 * Attempts to parse the input xml into a single element.
 * @param xml
 * @return The document object
 * @throws XmlException if a parse error occured.
 */
public static Element parse(String xml) throws XmlException {
 DocumentBuilder builder = null;
 try {
  builder = getBuilder();
  InputSource is = new InputSource(new StringReader(xml.trim()));
  return builder.parse(is).getDocumentElement();
 } catch (SAXParseException e) {
  throw new XmlException(
    e.getMessage() + " At: (" + e.getLineNumber() + ',' + e.getColumnNumber() + ')', e);
 } catch (SAXException e) {
  throw new XmlException(e);
 } catch (ParserConfigurationException e) {
  throw new XmlException(e);
 } catch (IOException e) {
  throw new XmlException(e);
 } finally {
  // Remove reference to XmlUtils class to insure classes can be unloaded
  if (builder != null) {
   builder.setErrorHandler(null);
  }
 }
}
origin: org.wso2.org.apache.shindig/shindig-common

/**
 * Attempts to parse the input xml into a single element.
 * @param xml
 * @return The document object
 * @throws XmlException if a parse error occured.
 */
public static Element parse(String xml) throws XmlException {
 DocumentBuilder builder = null;
 try {
  builder = getBuilder();
  InputSource is = new InputSource(new StringReader(xml.trim()));
  return builder.parse(is).getDocumentElement();
 } catch (SAXParseException e) {
  throw new XmlException(
    e.getMessage() + " At: (" + e.getLineNumber() + ',' + e.getColumnNumber() + ')', e);
 } catch (SAXException e) {
  throw new XmlException(e);
 } catch (ParserConfigurationException e) {
  throw new XmlException(e);
 } catch (IOException e) {
  throw new XmlException(e);
 } finally {
  // Remove reference to XmlUtils class to insure classes can be unloaded
  if (builder != null) {
   builder.setErrorHandler(null);
  }
 }
}
origin: com.lmco.shindig/shindig-common

/**
 * Attempts to parse the input xml into a single element.
 * @param xml
 * @return The document object
 * @throws XmlException if a parse error occured.
 */
public static Element parse(String xml) throws XmlException {
 DocumentBuilder builder = null;
 try {
  builder = getBuilder();
  InputSource is = new InputSource(new StringReader(xml.trim()));
  return builder.parse(is).getDocumentElement();
 } catch (SAXParseException e) {
  throw new XmlException(
    e.getMessage() + " At: (" + e.getLineNumber() + ',' + e.getColumnNumber() + ')', e);
 } catch (SAXException e) {
  throw new XmlException(e);
 } catch (ParserConfigurationException e) {
  throw new XmlException(e);
 } catch (IOException e) {
  throw new XmlException(e);
 } finally {
  // Remove reference to XmlUtils class to insure classes can be unloaded
  if (builder != null) {
   builder.setErrorHandler(null);
  }
 }
}
origin: org.gatein.shindig/shindig-gadgets

new XmlException(e));
origin: com.lmco.shindig/shindig-gadgets

new XmlException(e));
origin: org.apache.shindig/shindig-gadgets

new XmlException(e));
origin: org.gatein.shindig/shindig-gadgets

throw new SpecParserException(new XmlException(ele));
origin: com.lmco.shindig/shindig-gadgets

throw new SpecParserException(new XmlException(ele));
origin: org.apache.shindig/shindig-gadgets

throw new SpecParserException(new XmlException(ele));
org.apache.shindig.common.xmlXmlException<init>

Popular methods of XmlException

  • getMessage

Popular in Java

  • Making http post requests using okhttp
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JLabel (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now