Package com.nagarro.jsag.fjt.commons.exceptions

Examples of com.nagarro.jsag.fjt.commons.exceptions.ServiceException


            flights = this.flightDAO.performSearch(flightSearch);
            System.out.println(flights);
            System.out.println("in search mode not here");
        } catch (final DAOException exception) {
            StandardFlightSearchService.LOG.error(MethodUtils.errorMessage(exception));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
        return flights;
    }
View Full Code Here


            if (CSVFeedReaderService.LOG.isDebugEnabled()) {
                CSVFeedReaderService.LOG.debug(DebugMessages.ROOT_CAUSE.getMessage(),
                        ThrowableUtils.getRootCause(ioException));
                CSVFeedReaderService.LOG.debug(DebugMessages.STACK_TRACE.getMessage(), ioException);
            }
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, ioException);
        }
    }
View Full Code Here

            this.setFlights(GeneratorUtils.<Flight>generateDefaultEmptyArrayList());
            this.setParsedData(GeneratorUtils.<String, List<Object>>generateDefaultEmptyHashMap());
            this.setCSVFileReader(new FileReader(this.getCSVFile()));
        } catch (final FileNotFoundException fileNotFoundException) {
            CSVFeedReaderService.LOG.error(MethodUtils.errorMessage(fileNotFoundException));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, fileNotFoundException);
        }
        if (CSVFeedReaderService.LOG.isDebugEnabled()) {
            CSVFeedReaderService.LOG.debug(MethodUtils.successMessage());
        }
    }
View Full Code Here

            if (CSVFeedReaderService.LOG.isDebugEnabled()) {
                CSVFeedReaderService.LOG.debug(DebugMessages.ROOT_CAUSE.getMessage(),
                        ThrowableUtils.getRootCause(exception));
                CSVFeedReaderService.LOG.debug(DebugMessages.STACK_TRACE.getMessage(), exception);
            }
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
    }
View Full Code Here

                this.getFlightDAO().addFlight(flight);
            }
        } catch (final BaseException baseException) {
            this.deregister();
            CSVFeedReaderService.LOG.error(MethodUtils.errorMessage(baseException));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, baseException);
        }
       
        if (CSVFeedReaderService.LOG.isDebugEnabled()) {
            CSVFeedReaderService.LOG.debug(MethodUtils.successMessage());
        }
View Full Code Here

                StandardDirectoryService.LOG.debug(debugMessage.toString());
                StandardDirectoryService.LOG.debug(MethodUtils.successMessage());
            }
        } catch (final InterruptedException | ExecutionException | IOException exception) {
            StandardDirectoryService.LOG.error(MethodUtils.errorMessage(exception));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
    }
View Full Code Here

            if (StandardDirectoryService.LOG.isDebugEnabled()) {
                StandardDirectoryService.LOG.debug(MethodUtils.successMessage());
            }
        } catch (final IOException exception) {
            StandardDirectoryService.LOG.error(MethodUtils.errorMessage(exception));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
    }
View Full Code Here

            final CSVFeedService csvFeedService = CSVFeedService.getService(ServiceType.READER);
            csvFeedService.setCSVFile(this.currentFile);
            this.getReaderServices().add(this.executorService.submit(csvFeedService));
        } catch (final DAOException exception) {
            StandardDirectoryService.LOG.error(MethodUtils.errorMessage(exception));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
    }
View Full Code Here

                    this.getReaderServices().add(this.executorService.submit(csvFeedService));
                }
            }
        } catch (final DAOException exception) {
            StandardDirectoryService.LOG.error(MethodUtils.errorMessage(exception));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
    }
View Full Code Here

            if (StandardDirectoryService.LOG.isDebugEnabled()) {
                StandardDirectoryService.LOG.debug(MethodUtils.successMessage());
            }
        } catch (final InterruptedException interruptedException) {
            StandardDirectoryService.LOG.error(MethodUtils.errorMessage(interruptedException));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, interruptedException);
        }
        if (StandardDirectoryService.LOG.isDebugEnabled()) {
            StandardDirectoryService.LOG.debug(MethodUtils.callbackMessage(resultKey));
        }
        return resultKey;
View Full Code Here

TOP

Related Classes of com.nagarro.jsag.fjt.commons.exceptions.ServiceException

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.