Examples of ModelParseException


Examples of org.apache.maven.model.io.ModelParseException

        int line = -1;
        int column = -1;

        if ( cause instanceof ModelParseException )
        {
            ModelParseException e = (ModelParseException) cause;
            line = e.getLineNumber();
            column = e.getColumnNumber();
        }

        add( message, ModelProblem.Severity.ERROR, line, column, cause );
    }
View Full Code Here

Examples of org.apache.maven.model.io.ModelParseException

        int line = -1;
        int column = -1;

        if ( cause instanceof ModelParseException )
        {
            ModelParseException e = (ModelParseException) cause;
            line = e.getLineNumber();
            column = e.getColumnNumber();
        }

        add( message, ModelProblem.Severity.WARNING, line, column, cause );
    }
View Full Code Here

Examples of org.apache.maven.model.io.ModelParseException

        int line = -1;
        int column = -1;

        if ( cause instanceof ModelParseException )
        {
            ModelParseException e = (ModelParseException) cause;
            line = e.getLineNumber();
            column = e.getColumnNumber();
        }

        add( severity, message, line, column, cause );
    }
View Full Code Here

Examples of org.caffinitas.mapper.core.ModelParseException

        for (Class<?> entityClass : entityClasses) {
            model.addEntity(entityClass);
        }
        for (Class<?> mapEntityClass : mapEntityClasses) {
            if (!MapEntity.class.isAssignableFrom(mapEntityClass)) {
                throw new ModelParseException(mapEntityClass + " must extend " + MapEntity.class);
            }
            model.addMapEntity((Class<? extends MapEntity>) mapEntityClass);
        }

        return model;
View Full Code Here

Examples of org.camunda.bpm.model.xml.ModelParseException

  public static DomDocument getEmptyDocument(DocumentBuilderFactory documentBuilderFactory) {
    try {
      DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
      return new DomDocumentImpl(documentBuilder.newDocument());
    } catch (ParserConfigurationException e) {
      throw new ModelParseException("Unable to create a new document", e);
    }
  }
View Full Code Here

Examples of org.camunda.bpm.model.xml.ModelParseException

    try {
      DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
      documentBuilder.setErrorHandler(new DomErrorHandler());
      return new DomDocumentImpl(documentBuilder.parse(inputStream));
    } catch (ParserConfigurationException e) {
      throw new ModelParseException("ParserConfigurationException while parsing input stream", e);

    } catch (SAXException e) {
      throw new ModelParseException("SAXException while parsing input stream", e);

    } catch (IOException e) {
      throw new ModelParseException("IOException while parsing input stream", e);

    }
  }
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.