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

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


    public void create(final Flight flight) throws ServiceException {
        try {
            this.flightDAO.addFlight(flight);
        } catch (final DAOException exception) {
            StandardFlightDataService.LOG.error(MethodUtils.errorMessage(exception));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
       
    }
View Full Code Here


    public void delete(final Flight flight) throws ServiceException {
        try {
            this.flightDAO.removeFlight(flight);
        } catch (final DAOException exception) {
            StandardFlightDataService.LOG.error(MethodUtils.errorMessage(exception));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
       
    }
View Full Code Here

    public void update(final Flight flight) throws ServiceException {
        try {
            this.flightDAO.updateFlight(flight);
        } catch (final DAOException exception) {
            StandardFlightDataService.LOG.error(MethodUtils.errorMessage(exception));
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, exception);
        }
    }
View Full Code Here

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

            if (StandardWatchmanService.LOG.isDebugEnabled()) {
                StandardWatchmanService.LOG.debug(DebugMessages.ROOT_CAUSE.getMessage(),
                        ThrowableUtils.getRootCause(ioException));
                StandardWatchmanService.LOG.debug(DebugMessages.STACK_TRACE.getMessage(), ioException);
            }
            throw new ServiceException(ServiceException.DEFAULT_MESSAGE, ioException);
        }
    }
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.