Package org.rhq.enterprise.server.sync

Examples of org.rhq.enterprise.server.sync.ValidationException


    @Override
    public void validateExportedEntity(SystemSettings entity) throws ValidationException {
        try {
            systemManager.validateSystemConfiguration(subject, ((SystemSettings)entity).toProperties());
        } catch (Exception e) {
            throw new ValidationException("The system settings failed to validate: " + e.getMessage(), e);
        }
    }
View Full Code Here


    }

    @Override
    public void validateExportedEntity(T entity) throws ValidationException {
        if (++cnt > max) {
            throw new ValidationException("Entity " + entity + " is unexpected in the export file. At most " + max + " entites of this type are expected.");
        }
    }
View Full Code Here

    }

    @Override
    public void validateExportedEntity(T entity) throws ValidationException {
        if (!alreadyCheckedEntities.add(entity)) {
            throw new ValidationException("Was the export file manually updated? The entity " + entity + " has been seen multiple times.");
        }
    }
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.sync.ValidationException

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.