Examples of ParseException


Examples of org.graphstream.util.parser.ParseException

   *
   * pushback(c); return dateIO.parse(time).getTimeInMillis(); }
   */

  protected ParseException parseException(String message, Object... args) {
    return new ParseException(String.format(String.format(
        "parse error at (%d;%d) : %s", line, column, message), args));
  }
View Full Code Here

Examples of org.haystack.ParseException

    /** Parse from string fomat "hh:mm:ss.FF" or raise ParseException */
    public static HTime make(String s) {
        HVal val = new HZincReader(s).readScalar();
        if (val instanceof HTime)
            return (HTime) val;
        throw new ParseException(s);
    }
View Full Code Here

Examples of org.jacorb.notification.filter.ParseException

      // return AST tree
      return ( AbstractTCLNode ) _parser.getAST();
   }
   catch (TokenStreamException e)
   {
      throw new ParseException(data, e);
   }
   catch (RecognitionException e)
   {
      throw new ParseException(data, e);
   }
}
View Full Code Here

Examples of org.jboss.aop.pointcut.ast.ParseException

                  expr + "' resolves to neither a pointcut nor a type expression");
            sb.append("\n\nPointcut parse error:\n");
            sb.append(pe.getMessage());
            sb.append("\n\nType expression parse error:\n");
            sb.append(te.getMessage());
            throw new ParseException(sb.toString());
         }
      }
   }
View Full Code Here

Examples of org.jboss.byteman.rule.exception.ParseException

            Symbol event_parse = parser.parse();
            ParseNode eventTree = (ParseNode)event_parse.value;
            Event event = new Event(rule, eventTree);
            return event;
        } catch (Exception e) {
            throw new ParseException("org.jboss.byteman.rule.Event : error parsing event\n" + text, e);
        }
    }
View Full Code Here

Examples of org.jfree.formula.parser.ParseException

      this.rootReference = parser.parse(formulaText);
    }
    catch(TokenMgrError tokenMgrError)
    {
      // This is ugly.
      throw new ParseException(tokenMgrError.getMessage());
    }
  }
View Full Code Here

Examples of org.jfree.xml.ParseException

        try {
            getCurrentHandler().startElement(qName, attributes);
        }
        catch (XmlReaderException xre) {
            throw new ParseException(xre, getLocator());
        }
    }
View Full Code Here

Examples of org.jfree.xmlns.parser.ParseException

            throws SAXException
    {
        final String formula = attrs.getValue(OfficeNamespaces.OOREPORT_NS, "formula");
        if (formula == null)
        {
            throw new ParseException("Required attribute 'formula' is missing", getLocator());
        }
       
        final String name = attrs.getValue(OfficeNamespaces.OOREPORT_NS, "name");
        if (name == null)
        {
            throw new ParseException("Required attribute 'name' is missing", getLocator());
        }
        final String initialFormula = attrs.getValue(OfficeNamespaces.OOREPORT_NS, "initial-formula");
        final String deepTraversing = attrs.getValue(OfficeNamespaces.OOREPORT_NS, "deep-traversing");

        if (initialFormula != null)
View Full Code Here

Examples of org.jrdf.parser.ParseException

        checkNotEmptyString("s", s);
        try {
            String literal = nTripleUtil.unescapeLiteral(s);
            return graphElementFactory.createURIReference(create(literal));
        } catch (IllegalArgumentException iae) {
            throw new ParseException("Failed to create URI Reference: " + s, 1);
        } catch (GraphElementFactoryException e) {
            throw new ParseException("Failed to create URI Reference: " + s, 1);
        }
    }
View Full Code Here

Examples of org.json.simple.parser.ParseException

          break;
        case EndLevel2Object:
          parserState = ParserState.EndLevel2Array;
          break;
        default:
          throw new ParseException(ParseException.ERROR_UNEXPECTED_EXCEPTION,
              "reached endArray() in unexpected parser state: " + parserState);
      }

      if (parentRequestResIds != null && parserState == ParserState.EndLevel1Array) {
        resIds = parentRequestResIds;
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.