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

How to use
com.marklogic.client.MarkLogicBindingException
constructor

Best Java code snippets using com.marklogic.client.MarkLogicBindingException.<init> (Showing top 15 results out of 315)

origin: com.marklogic/client-api-java

private Element getChildByName(Element element, String ns, String localName) {
  NodeList nl = element.getElementsByTagNameNS(ns, localName);
  if (nl.getLength() == 1) {
    return (Element) nl.item(0);
  } else {
    throw new MarkLogicBindingException(
        "Invalid rule - must have one element only named "
            + localName);
  }
}
origin: marklogic/java-client-api

private Element getChildByName(Element element, String ns, String localName) {
 NodeList nl = element.getElementsByTagNameNS(ns, localName);
 if (nl.getLength() == 1) {
  return (Element) nl.item(0);
 } else {
  throw new MarkLogicBindingException(
   "Invalid rule - must have one element only named "
    + localName);
 }
}
origin: com.marklogic/client-api-java

public TuplesHandle() {
  super();
  super.setFormat(Format.XML);
  try {
    jc = JAXBContext.newInstance(TuplesBuilder.Tuples.class);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  }
}
origin: com.marklogic/client-api-java

/**
 * Zero-argument constructor.
 */
public ValuesHandle() {
  super();
  super.setFormat(Format.XML);
  try {
    jc = JAXBContext.newInstance(ValuesBuilder.Values.class);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  }
}
origin: com.marklogic/client-api-java

/**
 * The constructor.
 */
public ValuesListHandle() {
  super();
  super.setFormat(Format.XML);
  try {
    jc = JAXBContext.newInstance(ValuesListBuilder.ValuesList.class);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  }
}
origin: com.marklogic/client-api-java

/**
 * The constructor.
 */
public QueryOptionsListHandle() {
  super();
  super.setFormat(Format.XML);
  try {
    jc = JAXBContext.newInstance(QueryOptionsListBuilder.OptionsList.class);
    marshaller = jc.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  }
}
origin: marklogic/java-client-api

private void checkForEmptyBeans(Throwable e) {
 Throwable cause = e.getCause();
 if ( cause != null ) {
  if ( cause instanceof JsonMappingException &&
   cause.getMessage() != null &&
   cause.getMessage().contains("SerializationFeature.FAIL_ON_EMPTY_BEANS") )
  {
   throw new MarkLogicBindingException(
    "Each of your pojo beans and descendent beans must have public fields or paired get/set methods",
    cause);
  } else {
   checkForEmptyBeans(cause);
  }
 }
}
origin: marklogic/java-client-api

public TuplesHandle() {
 super();
 super.setFormat(Format.XML);
 try {
  JAXBContext jc = JaxbContextLoader.CACHED_CONTEXT;
  unmarshaller = jc.createUnmarshaller();
 } catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
 } catch (NoClassDefFoundError ncdfe) {
  throw new MarkLogicBindingException(new JAXBException("JAXB context initialization failed"));
 }
}
origin: com.marklogic/client-api-java

  optionsHolder = (QueryOptions) unmarshaller.unmarshal(in);
} catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
} catch (ParserConfigurationException e) {
  throw new MarkLogicBindingException(e);
} catch (TransformerConfigurationException e) {
  throw new MarkLogicBindingException(e);
} catch (TransformerException e) {
  throw new MarkLogicBindingException(e);
} catch (SAXException e) {
  throw new MarkLogicBindingException(e);
} catch (UnsupportedEncodingException e) {
  throw new MarkLogicBindingException(e);
origin: marklogic/java-client-api

/**
 * Zero-argument constructor.
 */
public ValuesHandle() {
 super();
 super.setFormat(Format.XML);
 try {
  JAXBContext jc = JaxbContextLoader.CACHED_CONTEXT;
  unmarshaller = jc.createUnmarshaller();
 } catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
 } catch (NoClassDefFoundError ncdfe) {
  throw new MarkLogicBindingException(new JAXBException("JAXB context initialization failed"));
 }
}
origin: marklogic/java-client-api

/**
 * The constructor.
 */
public QueryOptionsListHandle() {
 super();
 super.setFormat(Format.XML);
 try {
  JAXBContext jc = JaxbContextLoader.CACHED_CONTEXT;
  marshaller = jc.createMarshaller();
  marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
  unmarshaller = jc.createUnmarshaller();
 } catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
 } catch (NoClassDefFoundError ncdfe) {
  throw new MarkLogicBindingException(new JAXBException("JAXB context initialization failed"));
 }
}
origin: marklogic/java-client-api

/**
 * The constructor.
 */
public ValuesListHandle() {
 super();
 super.setFormat(Format.XML);
 try {
  JAXBContext jc = JaxbContextLoader.CACHED_CONTEXT;
  unmarshaller = jc.createUnmarshaller();
 } catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
 } catch (NoClassDefFoundError ncdfe) {
  throw new MarkLogicBindingException(new JAXBException("JAXB context initialization failed"));
 }
}
origin: com.marklogic/client-api-java

  logger.debug("End write of QueryOptionsHandle");       
} catch (JAXBException e) {
  throw new MarkLogicBindingException(e);
} catch (ParserConfigurationException e) {
  throw new MarkLogicBindingException(e);
} catch (TransformerConfigurationException e) {
  throw new MarkLogicBindingException(e);
} catch (TransformerException e) {
  throw new MarkLogicBindingException(e);
} catch (SAXException e) {
  throw new MarkLogicBindingException(e);
origin: marklogic/java-client-api

 throw new IllegalArgumentException("cannot construct "+columnName+" value as class: "+as.getName());
} catch (InstantiationException e) {
 throw new MarkLogicBindingException("could not construct value as class: "+as.getName(), e);
} catch (IllegalAccessException e) {
 throw new MarkLogicBindingException("could not construct value as class: "+as.getName(), e);
} catch (IllegalArgumentException e) {
 throw new MarkLogicBindingException("could not construct value as class: "+as.getName(), e);
} catch (InvocationTargetException e) {
 throw new MarkLogicBindingException("could not construct value as class: "+as.getName(), e);
origin: com.marklogic/client-api-java

/**
 * Construct a new empty QueryOptionsHandle object.
 */
public QueryOptionsHandle() {
  super.setFormat(Format.XML);
    setResendable(true);
  optionsHolder = new QueryOptions();
  try {
    SAXParser parser = pfactory.newSAXParser();
    XMLReader reader = parser.getXMLReader();
    QueryOptionsTransformExtractNS transform = new QueryOptionsTransformExtractNS();
    transform.setParent(reader);
    jc = JAXBContext.newInstance(QueryOptions.class);
    marshaller = jc.createMarshaller();
    marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
    unmarshaller = jc.createUnmarshaller();
  } catch (JAXBException e) {
    throw new MarkLogicBindingException(e);
  } catch (SAXException e) {
    throw new MarkLogicBindingException(e);
  } catch (ParserConfigurationException e) {
    throw new MarkLogicBindingException(e);
  }
}
com.marklogic.clientMarkLogicBindingException<init>

Popular methods of MarkLogicBindingException

    Popular in Java

    • Reactive rest calls using spring rest template
    • getContentResolver (Context)
    • onCreateOptionsMenu (Activity)
    • setRequestProperty (URLConnection)
    • HttpServer (com.sun.net.httpserver)
      This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
    • BufferedReader (java.io)
      Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
    • Permission (java.security)
      Legacy security code; do not use.
    • Properties (java.util)
      A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • Top 17 PhpStorm Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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