Package org.evolizer.core.exceptions

Examples of org.evolizer.core.exceptions.EvolizerRuntimeException


     
      for (ICompilationUnit compilationUnit : compilationUnits) {
        processCompilationUnit(compilationUnit, packageFragment.getElementName(), subMonitor.newChild(1));
      }
    } catch(JavaModelException jmex) {
      throw new EvolizerRuntimeException("Error while processing package '" + packageFragment.getElementName() + "'. " + jmex.getMessage(), jmex); // TODO Build exception?
    }
  }
View Full Code Here


      sub.worked(1);
     
      theProject.setDescription(description, sub.newChild(2));
    } catch(CoreException cex) {
      // should not happen
      throw new EvolizerRuntimeException("Unexpected error while applying nature to " + theProject.getName() +".", cex);
    }
  }
View Full Code Here

                associations = invocationQuery.list();
            }
        } catch (HibernateException he) {
            fLogger.error("Error in queryAssociationsOfEntities " + he.getMessage());
            throw new EvolizerRuntimeException("Error in queryAssociationsOfEntities", he);
        } catch (EvolizerException ee) {
            fLogger.error("Error in queryAssociationsOfEntities " + ee.getMessage());
            throw new EvolizerRuntimeException("Error in queryAssociationsOfEntities", ee);
        }

        return associations;
    }
View Full Code Here

                associations = invocationQuery.list();
            }
        } catch (HibernateException he) {
            fLogger.error("Error in queryAssociationsBetweenEntities " + he.getMessage());
            throw new EvolizerRuntimeException("Error in queryAssociationsBetweenEntities", he);
        } catch (EvolizerException ee) {
            fLogger.error("Error in queryAssociationsBetweenEntities " + ee.getMessage());
            throw new EvolizerRuntimeException("Error in queryAssociationsBetweenEntities", ee);
        }

        return associations;
    }
View Full Code Here

            );

            associations = invocationQuery.list();
        } catch (HibernateException he) {
            fLogger.error("Error in queryAssociationsBetweenEntities " + he.getMessage());
            throw new EvolizerRuntimeException("Error in queryAssociationsBetweenEntitySets", he);
        } catch (EvolizerException ee) {
            fLogger.error("Error in queryAssociationsBetweenEntities " + ee.getMessage());
            throw new EvolizerRuntimeException("Error in queryAssociationsBetweenEntitySets", ee);
        }

        return associations;
    }
View Full Code Here

            if (countOPs > 0) {
                entities.addAll(query.add(orClausel).list());
            }
        } catch (HibernateException he) {
            fLogger.error("Error in queryEntitiesByUniqueName " + he.getMessage());
            throw new EvolizerRuntimeException("Error in queryEntitiesByUniqueName", he);
        } catch (EvolizerException ee) {
            fLogger.error("Error in queryEntitiesByUniqueName " + ee.getMessage());
            throw new EvolizerRuntimeException("Error in queryEntitiesByUniqueName ", ee);
        }

        return entities;
    }
View Full Code Here

            if (countOPs > 0) {
                entities.addAll(query.add(orClausel).list());
            }
        } catch (HibernateException he) {
            fLogger.error("Error in queryEntitiesBySourceReference " + he.getMessage());
            throw new EvolizerRuntimeException("Error in queryEntitiesBySourceReference", he);
        } catch (EvolizerException ee) {
            fLogger.error("Error in queryEntitiesBySourceReference " + ee.getMessage());
            throw new EvolizerRuntimeException("Error in queryEntitiesBySourceReference", ee);
        }

        return entities;
    }
View Full Code Here

                    IStatus.ERROR,
                    message,
                    e);
      getLog().log(status);

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

        try {
            fProject.setPersistentProperty(DAForJavaPreferences.DB_USE_HSQLDB_INMEMORY, fIsInMemoryDBEnabled.toString());
            fProject.setPersistentProperty(DAForJavaPreferences.DB_USE_EVOLIZER, fIsEvolizerDBEnabled.toString());
        } catch (CoreException ce) {
            fLogger.error("Error storing the properties", ce);
            throw new EvolizerRuntimeException("Error storing the properties", ce);
        }
    }
View Full Code Here

 
  public static boolean hasNatureEnabled(IProject project) throws EvolizerRuntimeException {
    try {
      return project.isNatureEnabled(JavaOntModelNature.NATURE_ID);
    } catch (CoreException e) {
      throw new EvolizerRuntimeException("Error while checking for the JavaOntModelNature. Project is closed or does not exist.", e); // TODO own exception?
    }
  }
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.