Package org.evolizer.core.exceptions

Examples of org.evolizer.core.exceptions.EvolizerRuntimeException


        try {
            List<IJavaElement> javaElements = JavaSelectionHelper.getPackagesAndSelectedJavaElements(getSelection());
            famixEntities.addAll(snapshotAnalyzer.queryEntitiesByUniqueName(getJavaElementNames(javaElements)));
            famixEntities.addAll(snapshotAnalyzer.queryEntitiesBySourceReference(getJavaElementNamesAndSourceReference(javaElements)));
        } catch (EvolizerException ee) {
            throw new EvolizerRuntimeException("Error getting FAMIX conform names of Java elements", ee);
        }

        return famixEntities;
    }
View Full Code Here


        for (IJavaElement element : javaElements) {
            if (element instanceof IMethod) {
                try {
                    sourceReferences.put(getUniqueNameFromJavaElement(element), ((IMethod) element).getSourceRange().getOffset());
                } catch (JavaModelException jme) {
                    throw new EvolizerRuntimeException("Error determining source range of Java element " + element.getElementName(), jme);
                }
            }
        }
        return sourceReferences;
    }
View Full Code Here

            } else if (element instanceof IField) {
                IType declaringType = ((IField) element).getDeclaringType();
                uniqueName = declaringType.getFullyQualifiedName() + "." + element.getElementName();
            } else {
                sLogger.error("Element type not supported " + element.getElementType());
                throw new EvolizerRuntimeException("Element type not supported " + element.getElementType());
            }
        } catch (JavaModelException jme) {
            sLogger.error("Error determining FAMIX type of Java element " + element.getElementName(), jme);
            throw new EvolizerRuntimeException("Error determining FAMIX type of Java element " + element.getElementName(), jme);
        }

        return uniqueName;
    }
View Full Code Here

  static String encode(String uniqueName) throws EvolizerRuntimeException {
    try {
      return URLEncoder.encode(uniqueName, "UTF-8");
    } catch (UnsupportedEncodingException ex) {
      // Should never happen.
      throw new EvolizerRuntimeException("UTF-8 encoding is not supported for identifier/URI.", ex);
    }
  }
View Full Code Here

      IStatus status = new Status(IStatus.ERROR, getDefault().getBundle()
          .getSymbolicName(), IStatus.ERROR, message, e);
      getLog().log(status);

      throw new EvolizerRuntimeException(
          "Error while initializing log properties.", e);
    }
  }
View Full Code Here

    try {
      setUpAltEntries();
      readOntologies();
    } catch(IOException ex) {
      throw new EvolizerRuntimeException("Error in setting-up ontologies for the Java Ontology Model.", ex);
    }
  }
View Full Code Here

                props.load(propertiesInputStream);
                propertiesInputStream.close();
                fLogManager = new PluginLogManager(this, props);
            }
        } catch (IOException ioe) {
            throw new EvolizerRuntimeException("Error configuring DAForJavaPlugin", ioe);
        }
    }
View Full Code Here

        File profiles = null;
        try {
            profiles = new File(FileLocator.toFileURL(Platform.getBundle(PLUGIN_ID).getEntry(filePath)).toURI());

        } catch (URISyntaxException use) {
            throw new EvolizerRuntimeException("Error getting file " + filePath, use);
        } catch (IOException ioe) {
            throw new EvolizerRuntimeException("Error getting file " + filePath, ioe);
        }
        return profiles;
    }
View Full Code Here

        try {
            FamixAssociation a = this.getAssociation(edgeToCheck);
            type = a.getClass();
        } catch (NullPointerException npe) {
            sLogger.error("Error obtaining edge type " + edge.toString() + " association not contained in edge map");
            throw new EvolizerRuntimeException("Error obtaining edge type " + edge.toString(), npe);
        }
        return type;
    }
View Full Code Here

        if(packageFragment.getKind() == IPackageFragmentRoot.K_SOURCE && packageFragment.containsJavaResources()) {
          processPackage(packageFragment, subMonitor.newChild(1));
        }
      }
    } catch(JavaModelException jmex) {
      throw new EvolizerRuntimeException("Error while processing Java project. " + jmex.getMessage(), jmex); // TODO Build exception?
    }
   
    modelOf(javaProject).reconcile();
  }
View Full Code Here

TOP

Related Classes of org.evolizer.core.exceptions.EvolizerRuntimeException

Copyright © 2018 www.massapicom. 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.