Examples of ParserException


Examples of org.megatome.frame2.util.sax.ParserException

  String localName, @SuppressWarnings("unused")
  String qName,
            Attributes attributes) throws ParserException {
        String name = attributes.getValue(NAME);
        if (this.params.containsKey(name)) {
            throw new ParserException("Duplicate name in init parameter: " //$NON-NLS-1$
                    + name);
        }

        this.params.put(name, attributes.getValue(VALUE));
    }
View Full Code Here

Examples of org.megatome.frame2.util.sax.ParserException

        String name = attributes.getValue(NAME);
        String type = attributes.getValue(TYPE);
        ForwardType ftype = ForwardType.fromString(type);

        if (ftype == null) {
            throw new ParserException(INVALID_TYPE + name + " type " + type); //$NON-NLS-1$
        }

        Forward forward = new Forward(name, ftype, attributes.getValue(PATH));

        if (ftype.equals(ForwardType.HTMLRESOURCE)) {
View Full Code Here

Examples of org.megatome.frame2.util.sax.ParserException

            reader.setElement(EXCEPTIONS);
            reader.setElement(PLUGINS);
            reader.setElement(REQ_PROC);

            if (this.is == null) {
                throw new ParserException("Error finding config file "); //$NON-NLS-1$
            }

            reader.parse(this.is);
        } catch (ParserException e) {
            throw new Frame2Exception("Unable to load configuration", e); //$NON-NLS-1$
View Full Code Here

Examples of org.megatome.frame2.util.sax.ParserException

        } else {
            rtype = ResolveType.fromString(resolveAs);
        }

        if (rtype == null) {
            throw new ParserException("resolveAs attribute " + resolveAs //$NON-NLS-1$
                    + " is not valid "); //$NON-NLS-1$
        }

        EventDef event = new EventDef(name, type, rtype);
View Full Code Here

Examples of org.onebusaway.uk.parser.ParserException

      case 3:
        return ECategory.LARGE_INTERCHANGE;
      case 9:
        return ECategory.SUBSIDIARY;
      default:
        throw new ParserException("unknown category=" + value);
    }
  }
View Full Code Here

Examples of org.rssowl.core.interpreter.ParserException

      ex = e;
    }

    /* In case of an exception */
    if (ex != null && document == null)
      throw new ParserException(Activator.getDefault().createErrorStatus(ex.getMessage(), ex));

    /* Return Document */
    return document;
  }
View Full Code Here

Examples of org.semanticweb.owl.expression.ParserException

        String i = consumeToken();
        try {
            return Integer.parseInt(i);
        }
        catch (NumberFormatException e) {
            throw new ParserException(getToken().getToken(), getTokenPos(), getTokenRow(), true, getTokenCol());
        }
    }
View Full Code Here

Examples of org.semanticweb.owlapi.expression.ParserException

        String i = consumeToken();
        try {
            return Integer.parseInt(i);
        }
        catch (NumberFormatException e) {
            throw new ParserException(Arrays.asList(getToken().getToken()), getTokenPos(), getTokenRow(), true, getTokenCol());
        }
    }
View Full Code Here

Examples of org.semanticweb.owlapi.manchestersyntax.renderer.ParserException

                tokenSequence = getTokenSequence();
                start = lastToken.getPos();
                line = lastToken.getRow();
                column = lastToken.getCol();
            }
            return new ParserException(tokenSequence, start, line, column,
                    ontologyNameExpected, classNameExpected,
                    objectPropertyNameExpected, dataPropertyNameExpected,
                    individualNameExpected, datatypeNameExpected,
                    annotationPropertyNameExpected, integerExpected, keywords);
        }
View Full Code Here

Examples of org.springframework.binding.expression.ParserException

    if (context.isTemplate()) {
      return parseTemplate(expressionString, context);
    } else {
      if (expressionString.startsWith(getExpressionPrefix()) && expressionString.endsWith(getExpressionSuffix())) {
        if (!allowDelimitedEvalExpressions) {
          throw new ParserException(
              expressionString,
              "The expression '"
                  + expressionString
                  + "' being parsed is expected be a standard OGNL expression. Do not attempt to enclose such expression strings in ${} delimiters--this is redundant. If you need to parse a template that mixes literal text with evaluatable blocks, set the 'template' parser context attribute to true.",
              null);
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.