Examples of InstanceNotFoundRecoverableErrorException


Examples of org.libreplan.ws.common.impl.InstanceNotFoundRecoverableErrorException

                DateConverter.toLocalDate(criterionSatisfactionDTO.endDate));

        } catch (InstanceNotFoundException e) {

            if (e.getClassName().equals(CriterionType.class.getName())) {
                throw new InstanceNotFoundRecoverableErrorException(
                    CriterionTypeDTO.ENTITY_TYPE, e.getKey().toString());
            } else {
                throw new InstanceNotFoundRecoverableErrorException(
                    CriterionDTO.ENTITY_TYPE, e.getKey().toString());
            }

        }
View Full Code Here

Examples of org.libreplan.ws.common.impl.InstanceNotFoundRecoverableErrorException

            // Copy the data of the resource calendar DTO
            updateBasicPropertiesResourceCalendar(calendar, resource
                    .getCalendar());

        } catch (InstanceNotFoundException e) {
                throw new InstanceNotFoundRecoverableErrorException(
                        RESOURCE_CALENDAR_ENTITY_TYPE, e.getKey().toString());
        } catch (MultipleInstancesException e) {
            throw new ValidationException(MessageFormat.format(
                    "there exist multiple resource calendars with name {0}",
                    calendarCode));
View Full Code Here

Examples of org.libreplan.ws.common.impl.InstanceNotFoundRecoverableErrorException

                assignmentDTO.code,
                StringUtils.trim(assignmentDTO.costCategoryName), resource,
                DateConverter.toLocalDate(assignmentDTO.startDate),
                DateConverter.toLocalDate(assignmentDTO.endDate));
        } catch (InstanceNotFoundException e) {
            throw new InstanceNotFoundRecoverableErrorException(
                COST_CATEGORY_ENTITY_TYPE, e.getKey().toString());
        }

    }
View Full Code Here

Examples of org.libreplan.ws.common.impl.InstanceNotFoundRecoverableErrorException

                DateConverter.toLocalDate(criterionSatisfactionDTO.endDate));

        } catch (InstanceNotFoundException e) {

            if (e.getClassName().equals(CriterionType.class.getName())) {
                throw new InstanceNotFoundRecoverableErrorException(
                    CriterionTypeDTO.ENTITY_TYPE, e.getKey().toString());
            } else {
                throw new InstanceNotFoundRecoverableErrorException(
                    CriterionDTO.ENTITY_TYPE, e.getKey().toString());
            }

        }
View Full Code Here

Examples of org.libreplan.ws.common.impl.InstanceNotFoundRecoverableErrorException

            assignment.updateUnvalidated(
                StringUtils.trim(i.costCategoryName),
                DateConverter.toLocalDate(i.startDate),
                DateConverter.toLocalDate(i.endDate));
        } catch (InstanceNotFoundException e) {
            throw new InstanceNotFoundRecoverableErrorException(
                COST_CATEGORY_ENTITY_TYPE, e.getKey().toString());
        }

    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.