Examples of ParserException


Examples of org.jboss.forge.parser.ParserException

      }
      else if (visitor.getPackageDeclaration() != null)
      {
         return getJavaSource(null, document, unit, visitor.getPackageDeclaration());
      }
      throw new ParserException("Could not find type declaration in Java source - is this actually code?");
   }
View Full Code Here

Examples of org.jboss.forge.roaster.ParserException

      }
      else if (visitor.getPackageDeclaration() != null)
      {
         return getJavaSource(null, document, unit, visitor.getPackageDeclaration());
      }
      throw new ParserException("Could not find type declaration in Java source - is this actually code?");
   }
View Full Code Here

Examples of org.jboss.jca.common.metadata.ParserException

               case DATASOURCES : {
                  dataSources = parseDataSources(reader);
                  break;
               }
               default :
                  throw new ParserException(bundle.unexpectedElement(reader.getLocalName()));
            }

            break;
         }
         default :
View Full Code Here

Examples of org.jrdf.sparql.parser.parser.ParserException

        Map<AttributeName, PositionalNodeType> variables = varCollector.getAttributes();
        for (AttributeName variable : declaredVariables) {
            NodeType type = variables.get(variable);
            if (type == null) {
                String literal = variable.getLiteral();
                throw new ParserException(new TIdentifier(literal), "Failed to find variable " +
                    literal + " in where clause. ");
            } else {
                Attribute attribute = new AttributeImpl(variable, type);
                newAttributes.add(attribute);
            }
View Full Code Here

Examples of org.jvnet.glassfish.comms.sipagent.model.ParserException

        SipMessage result = p.parseMessage(null, bb, null, null, null);
       
        theirLogger.finer("Created message: " + result);
        // fix for parser 'bug' it either returns null or throws an exception...
        if (result == null){
            throw new ParserException(
                "Resulting message after parsing was null");
        }
        return result;
    }
View Full Code Here

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

        String forwardName = attributes.getValue(FORWARD_NAME);
        String viewattr = attributes.getValue(TYPE);
        ViewType vtype = ViewType.fromString(viewattr);

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

        if (vtype.equals(ViewType.BOTH)) {
            this.htmlForwardName = forwardName;
View Full Code Here

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

            Attributes attributes) throws ParserException {
        String requestKey = attributes.getValue(REQUEST_KEY);
        String type = attributes.getValue(TYPE);
        this.def = new ExceptionDef(requestKey, type);
        if (this.exceptions.contains(this.def)) {
            throw new ParserException(
                    "Exception tag Error, Duplicate type defined for type " //$NON-NLS-1$
                            + type);
        }
    }
View Full Code Here

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 put parameter " + name); //$NON-NLS-1$
        }

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

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

     */
    public void execute(InputStream is) throws TemplateException {

        try {
            if (is == null) {
                throw new ParserException(
                        "Error finding template definition file "); //$NON-NLS-1$
            }
            this.reader.parse(is);
        } catch (ParserException e) {
            e.printStackTrace();
View Full Code Here

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

        this.putTagHandler.clear();
        if (this.definitions.containsKey(this.templateDef.getName())) {
            // do not add duplicate named plugin defs to list.
            LOGGER.severe("Error: Duplicate definition " //$NON-NLS-1$
                    + this.templateDef.getName());
            throw new ParserException("Error: Duplicate definition " //$NON-NLS-1$
                    + this.templateDef.getName());
        }
        this.definitions.put(this.templateDef.getName(), this.templateDef);
    }
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.