Examples of ParseException


Examples of at.bestsolution.efxclipse.runtime.bindings.ParseException

      if (i % 2 == 0) {
        if (stringTokenizer.hasMoreTokens()) {
          token = token.toUpperCase();
          final int modifierKey = lookup.formalModifierLookup(token);
          if (modifierKey == NO_KEY) {
            throw new ParseException(
                "Cannot create key stroke with duplicate or non-existent modifier key: " //$NON-NLS-1$
                    + token);
          }

          modifierKeys |= modifierKey;
View Full Code Here

Examples of com.alvazan.orm.api.exc.ParseException

  private SpiMetaQuery newsetupByVisitingTree(String query, String targetTable, MetaLoader mgr, String errorMsg) {
    try {
      return newsetupByVisitingTreeImpl(query, targetTable, mgr, errorMsg);
    } catch(ParseQueryException e) {
      String msg = errorMsg+"  failed to parse.  Specific reason="+e.getMessage();
      throw new ParseException(msg, e);
    } catch(RuntimeException e) {
      throw new ParseException(errorMsg+" failed to compile.  See chained exception for cause", e);
    }
  }
View Full Code Here

Examples of com.android.dx.cf.iface.ParseException

                    lastCategory = 1;
                    at += bytes.getUnsignedShort(at + 1) + 3;
                    break;
                }
                default: {
                    ParseException ex =
                        new ParseException("unknown tag byte: " + Hex.u1(tag));
                    ex.addContext("...while preparsing cst " + Hex.u2(i) +
                                  " at offset " + Hex.u4(at));
                    throw ex;
                }
            }
        }
View Full Code Here

Examples of com.bansheeproject.exceptions.ParseException

     
      return responseObject;
    }
    catch (Exception ex) {
      ex.printStackTrace();
      throw new ParseException(ex);
    }
  }
View Full Code Here

Examples of com.bramosystems.oss.player.playlist.client.ParseException

                    track = Track.createObject().cast();
                    parentNode = XSPFNodeNames.track;
                    break;
            }
        } catch (Exception e) {
            throw new ParseException("Parse Error : " + nodeName, e);
        }
    }
View Full Code Here

Examples of com.cloudesire.tisana4j.exceptions.ParseException

        List<T> objList = mapper.reader(mapper.getTypeFactory().constructCollectionType(List.class, clazz))
            .readValue(stream);
        return objList;
      } catch (JsonProcessingException  e)
      {
        throw new ParseException(e);
      }
    } catch ( IOException e)
    {
      throw new RuntimeRestException(e);
    }
View Full Code Here

Examples of com.espertech.esper.client.deploy.ParseException

            if (node instanceof ParseNodeComment) {
                continue;
            }
            if (node instanceof ParseNodeModule) {
                if (moduleName != null) {
                    throw new ParseException("Duplicate use of the 'module' keyword for resource '" + resourceName + "'");
                }
                if (count > 0) {
                    throw new ParseException("The 'module' keyword must be the first declaration in the module file for resource '" + resourceName + "'");
                }
                moduleName = ((ParseNodeModule) node).getModuleName();
            }
            count++;
        }

        Set<String> uses = new LinkedHashSet<String>();
        Set<String> imports = new LinkedHashSet<String>();
        count = 0;
        for (ParseNode node : nodes) {
            if ((node instanceof ParseNodeComment) || (node instanceof ParseNodeModule)) {
                continue;
            }
            String message = "The 'uses' and 'import' keywords must be the first declaration in the module file or follow the 'module' declaration";
            if (node instanceof ParseNodeUses) {
                if (count > 0) {
                    throw new ParseException(message);
                }
                uses.add(((ParseNodeUses) node).getUses());
                continue;
            }
            if (node instanceof ParseNodeImport) {
                if (count > 0) {
                    throw new ParseException(message);
                }
                imports.add(((ParseNodeImport) node).getImported());
                continue;
            }
            count++;
View Full Code Here

Examples of com.floreysoft.jmte.message.ParseException

      @Override
      public void error(String messageKey, Token token,
          Map<String, Object> parameters) throws ParseException {
        Message message = new ResourceBundleMessage(messageKey)
            .withModel(parameters).onToken(token);
        throw new ParseException(message);
      }
    };
  }
View Full Code Here

Examples of com.google.caja.lexer.ParseException

    assertEquals("<xmp>  </xmp>", Nodes.render(t, MarkupRenderMode.XML));
    assertEquals("<xmp>  </xmp>", Nodes.render(t, MarkupRenderMode.HTML));
  }

  public final void testEofMessageDueToMismatchedQuotes() {
    ParseException pex = null;
    try {
      htmlFragment(fromString("<foo><bar baz='boo></bar></foo>"));
    } catch (ParseException ex) {
      pex = ex;
    }
    if (pex == null) {
      fail("Mismatched quote did not result in exception");
    } else {
      Message msg = pex.getCajaMessage();
      assertEquals(DomParserMessageType.UNCLOSED_TAG, msg.getMessageType());
      assertEquals(
          "testEofMessageDueToMismatchedQuotes:1+6@6 - 10@10",
          msg.getMessageParts().get(0).toString());
    }
View Full Code Here

Examples of com.google.gdata.util.ParseException

     
      // Process the name tag only.  The content will be parsed as XmlBlob
      if (localName.equals(CONTENT_NAME)) {
        contentName = localValue;
      } else {
        throw new ParseException("Unknown key = " + localName + " in this name space");
      }
    }
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.