ParseException.getMessage
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.sun.xml.xsom.impl.scd.ParseException.getMessage(Showing top 4 results out of 315)

  • Common ways to obtain ParseException
private void myMethod () {
ParseException p =
  • new ParseException()
  • Smart code suggestions by Codota
}
origin: com.sun.xml.bind/jaxb-xjc

/**
 * Parses the string representation of SCD.
 *
 * <p>
 * This method involves parsing the path expression and preparing the in-memory
 * structure, so this is useful when you plan to use the same SCD against
 * different context node multiple times.
 *
 * <p>
 * If you want to evaluate SCD just once, use {@link XSComponent#select} methods.
 *
 * @param path
 *      the string representation of SCD, such as "/foo/bar".
 * @param nsContext
 *      Its {@link NamespaceContext#getNamespaceURI(String)} is used
 *      to resolve prefixes in the SCD to the namespace URI.
 */
public static SCD create(String path, NamespaceContext nsContext) throws java.text.ParseException {
  try {
    SCDParser p = new SCDParser(path,nsContext);
    List<?> list = p.RelativeSchemaComponentPath();
    return new SCDImpl(path,list.toArray(new Step[list.size()]));
  } catch (TokenMgrError e) {
    throw setCause(new java.text.ParseException(e.getMessage(), -1 ),e);
  } catch (ParseException e) {
    throw setCause(new java.text.ParseException(e.getMessage(), e.currentToken.beginColumn ),e);
  }
}
origin: com.sun.xsom/xsom

/**
 * Parses the string representation of SCD.
 *
 * <p>
 * This method involves parsing the path expression and preparing the in-memory
 * structure, so this is useful when you plan to use the same SCD against
 * different context node multiple times.
 *
 * <p>
 * If you want to evaluate SCD just once, use {@link XSComponent#select} methods.
 *
 * @param path
 *      the string representation of SCD, such as "/foo/bar".
 * @param nsContext
 *      Its {@link NamespaceContext#getNamespaceURI(String)} is used
 *      to resolve prefixes in the SCD to the namespace URI.
 */
public static SCD create(String path, NamespaceContext nsContext) throws java.text.ParseException {
  try {
    SCDParser p = new SCDParser(path,nsContext);
    List<?> list = p.RelativeSchemaComponentPath();
    return new SCDImpl(path,list.toArray(new Step[list.size()]));
  } catch (TokenMgrError e) {
    throw setCause(new java.text.ParseException(e.getMessage(), -1 ),e);
  } catch (ParseException e) {
    throw setCause(new java.text.ParseException(e.getMessage(), e.currentToken.beginColumn ),e);
  }
}
origin: com.sun.xml.bind/jaxb-osgi

/**
 * Parses the string representation of SCD.
 *
 * <p>
 * This method involves parsing the path expression and preparing the in-memory
 * structure, so this is useful when you plan to use the same SCD against
 * different context node multiple times.
 *
 * <p>
 * If you want to evaluate SCD just once, use {@link XSComponent#select} methods.
 *
 * @param path
 *      the string representation of SCD, such as "/foo/bar".
 * @param nsContext
 *      Its {@link NamespaceContext#getNamespaceURI(String)} is used
 *      to resolve prefixes in the SCD to the namespace URI.
 */
public static SCD create(String path, NamespaceContext nsContext) throws java.text.ParseException {
  try {
    SCDParser p = new SCDParser(path,nsContext);
    List<?> list = p.RelativeSchemaComponentPath();
    return new SCDImpl(path,list.toArray(new Step[list.size()]));
  } catch (TokenMgrError e) {
    throw setCause(new java.text.ParseException(e.getMessage(), -1 ),e);
  } catch (ParseException e) {
    throw setCause(new java.text.ParseException(e.getMessage(), e.currentToken.beginColumn ),e);
  }
}
origin: org.glassfish.jaxb/xsom

/**
 * Parses the string representation of SCD.
 *
 * <p>
 * This method involves parsing the path expression and preparing the in-memory
 * structure, so this is useful when you plan to use the same SCD against
 * different context node multiple times.
 *
 * <p>
 * If you want to evaluate SCD just once, use {@link XSComponent#select} methods.
 *
 * @param path
 *      the string representation of SCD, such as "/foo/bar".
 * @param nsContext
 *      Its {@link NamespaceContext#getNamespaceURI(String)} is used
 *      to resolve prefixes in the SCD to the namespace URI.
 */
public static SCD create(String path, NamespaceContext nsContext) throws java.text.ParseException {
  try {
    SCDParser p = new SCDParser(path,nsContext);
    List<?> list = p.RelativeSchemaComponentPath();
    return new SCDImpl(path,list.toArray(new Step[list.size()]));
  } catch (TokenMgrError e) {
    throw setCause(new java.text.ParseException(e.getMessage(), -1 ),e);
  } catch (ParseException e) {
    throw setCause(new java.text.ParseException(e.getMessage(), e.currentToken.beginColumn ),e);
  }
}
com.sun.xml.xsom.impl.scdParseExceptiongetMessage

Javadoc

This method has the standard behavior when this object has been created using the standard constructors. Otherwise, it uses "currentToken" and "expectedTokenSequences" to generate a parse error message and returns it. If this object has been created due to a parse error, and you do not catch it (it gets thrown from the parser), then this method is called during the printing of the final stack trace, and hence the correct error message gets displayed.

Popular methods of ParseException

  • <init>
  • add_escapes
    Used to convert raw characters to their escaped version when these raw version cannot be used as par

Popular classes and methods

  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Connection (java.sql)
    A connection (session) with a specific database. SQL statements are executed and results are returne
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JLabel (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)