Package org.evolizer.core.exceptions

Examples of org.evolizer.core.exceptions.EvolizerRuntimeException


  // TODO build stuff should go elsewhere
  public static void build(IJavaProject javaProject, IProgressMonitor monitor) {
    try {
      javaProject.getProject().build(IncrementalProjectBuilder.FULL_BUILD, monitor);
    } catch (CoreException cex) {
      throw new EvolizerRuntimeException("Build did not succeed.", cex);
    }
  }
View Full Code Here


     * @param logEntry
     *            the log entry
     */
    protected void notifyLogEntryListeners(LogEntry logEntry) {
        if (fListeners.size() == 0) {
            throw new EvolizerRuntimeException("No listeners are attached to the cvs log parser!");
        }
        for (ILogEntryListener listener : fListeners) {
            listener.processLogEntry(logEntry);
        }
    }
View Full Code Here

            e.printStackTrace();
            if (lSession != null) {
                lSession.rollbackTransaction();
            }
        } catch (EvolizerException e) {
      throw new EvolizerRuntimeException("Error fetching current session", e);
    } finally {
            if (lSession != null) {
                lSession.endTransaction();
            }
        }
View Full Code Here

                    Class<?>[] classes = provider.getAnnotatedClasses();
                    for (Class<?> clazz : classes) {
                        if (isModelEntity(clazz)) {
                            annotatedClasses.add(clazz);
                        } else {
                            throw new EvolizerRuntimeException(clazz.getSimpleName()
                                    + " does not implement IEvolizerModelEntity.");
                        }
                    }

                    sfLogger.debug("Added model " + configElement.getAttribute("name"));
                } catch (CoreException exception) {
                    String message =
                        "Could not create executable extension from " + configElement.getContributor() + ". "
                        + exception.getMessage();

                    sfLogger.error(message, exception);

                    throw new EvolizerRuntimeException("Error while initializing log properties.", exception);
                }
            }
        }

        return annotatedClasses;
View Full Code Here

        List<T> result;
        try {
            Query query = fHibernateSession.createQuery(hqlQuery);
            result = query.list();
        } catch (QuerySyntaxException qse) {
            throw new EvolizerRuntimeException("Error in query syntax", qse);
        }
       
        return result;
    }
View Full Code Here

        try {
            Query query = fHibernateSession.createQuery(hqlQuery);
            query.setMaxResults(maxResults);
            result = query.list();
        } catch (QuerySyntaxException qse) {
            throw new EvolizerRuntimeException("Error in query syntax", qse);
        }
        return result;
    }
View Full Code Here

        fTransaction = fHibernateSession.beginTransaction();
    }

    private void ensureTransactionIsActive() throws EvolizerRuntimeException{
        if(fTransaction == null){
            EvolizerRuntimeException ex =  new EvolizerRuntimeException("No Transaction is active.");
            logger.error("No Transaction is active.", ex);
           
            throw ex;
        }  
    }
View Full Code Here

        Query query = fHibernateSession.createQuery(hqlQuery);
       
        try {
            return (T) query.uniqueResult();
        } catch (NonUniqueResultException e) {
            EvolizerRuntimeException ex =  new EvolizerRuntimeException("Non unique result for uniqueResult query");
            logger.error("Non unique result for uniqueResult query", ex);
           
            throw ex;
        }
    }
View Full Code Here

                } catch (CoreException exception) {
                    String message =
                            "Error while gathering models. Could not create executable extension from " + configElement.getContributor() + ". "
                                    + exception.getMessage();

                    throw new EvolizerRuntimeException(message, exception);
                }
            }
        }

        return annotatedClasses;
View Full Code Here

        return annotatedClasses;
    }

    private void assertTransactionIsNotActive() throws EvolizerRuntimeException{
        if(fTransaction != null){
            EvolizerRuntimeException ex =  new EvolizerRuntimeException("A Transaction is already active.");
            logger.error("A Transaction is already active.", ex);
            throw ex;
        }  
    }
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.