Package com.evasion.exception

Examples of com.evasion.exception.EvasionException


    @Override
    public List<Location> searchFullTextLocation(String query) throws EvasionException{
        try {
        return  new ArrayList(searchEngine.search("name:"+query+"*", "name"));
        } catch (Exception ex) {
            throw new EvasionException("Erreur technique:", ex);
        }
    }
View Full Code Here


            String month, day, hour, min;
            String timerInterval = parametreManager.getProperty(Constante.IMPORT_TIMER_INTERVAL);
            if (timerInterval == null && enabled) {
                utx.rollback();
                throw new EvasionException("Timer interval not define.");
            }

            //stop possible timer précédent.
            Timer timer = getImportTimer();
            if (timer != null) {
                timer.cancel();
            }

            if (enabled) {
                String[] param = parametreManager.getProperty(Constante.IMPORT_TIMER_INTERVAL).split("\\|");
                month = param[0];
                day = param[1];
                hour = param[2];
                min = param[3];
                LOGGER.debug("Geoloc import Timer is : {} with timer  {}", enabled, param);
                try {
                    //start timer
                    timer = timerService.createCalendarTimer(
                            new ScheduleExpression().month(month).dayOfMonth(day).hour(hour).minute(min),
                            new TimerConfig(Constante.IMPORT_TIMER_NAME, false));
                    LOGGER.info("Last geoloc import: {}", timer.getNextTimeout());
                } catch (IllegalArgumentException ex) {
                    LOGGER.error("Illegal argument exception on " + Constante.IMPORT_TIMER_INTERVAL + " parameter", ex);
                    utx.rollback();
                }
            }
            utx.commit();
        } catch (Exception ex) {
            throw new EvasionException("Fail update import Geoloc Data.", ex);
        }
    }
View Full Code Here

                    geo.clear();
                    utx.commit();

                    // @TODo revoir la gestion des exceptions
                } catch (Exception ex) {
                    throw  new EvasionException("Error import Geoloc data for country "+ country, ex);
                }
            }

        } catch (EvasionException ex) {
            LOGGER.error("Error import Geoloc;", ex);
View Full Code Here

                reader = new BufferedReader(new FileReader(file));
            }
            nextLine = reader.readLine();
            nextLine = reader.readLine();
        } catch (ZipException ex) {
            throw new EvasionException("Error on read Zip File", ex);
        } catch (IOException ex) {
            throw new EvasionException("Error on init parser", ex);
        }
    }
View Full Code Here

        } catch (Exception e) {
            LOGGER.error("Extraction zip file error", e);
            close();

        }
        throw new EvasionException("Extraction zip file error");
    }
View Full Code Here

            }
            return entity;
        } catch (IOException ex) {
            LOGGER.error("IO Exception sur un readline.", ex);
            close();
            throw new EvasionException("IO Exception sur un readline.", ex);
        }
    }
View Full Code Here

            //} else {
            //    return false;
            // }
        } catch (IOException ex) {
            LOGGER.error("Can not download Country data file", ex);
            throw new EvasionException("IO Exception sur un readline.", ex);
        } finally {
            if (bout != null) {
                try {
                    bout.close();
                } catch (IOException ex) {
View Full Code Here

        }
    }

    public boolean importData(String format, Mode mode) throws EvasionException {
        if (tempFile == null) {
            throw new EvasionException("No tempFile found for import");
        }
        AbstractFileParser parser = null;
        int count = 0;
        try {
            if (GeonameParser.FORMAT.equalsIgnoreCase(format)) {
View Full Code Here

        try {
            LOGGER.debug("Principal type: " + user);
            BeanWrapperImpl wrapper = new BeanWrapperImpl(user);
            result = wrapper.getPropertyValue(property);
        } catch (BeansException ex) {
            throw new EvasionException("Can't find principal property.", ex);
        }
        //escapeEntities(String.valueOf(result));
        return result;
    }
View Full Code Here

        try {
            LOGGER.debug("Principal type: " + user);
            BeanWrapperImpl wrapper = new BeanWrapperImpl(user);
            result = wrapper.getPropertyValue(property);
        } catch (BeansException ex) {
            throw new EvasionException("Can't find principal property.", ex);
        }
        //escapeEntities(String.valueOf(result));
        return result;
    }
View Full Code Here

TOP

Related Classes of com.evasion.exception.EvasionException

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.