Examples of AMapperException


Examples of com.ajjpj.amapper.core2.exclog.AMapperException

    public R expectedEntryFor(AQualifiedSourceAndTargetType key, APath path) {
        final AOption<R> raw = tryEntryFor(key);

        if(raw.isEmpty()) {
            throw new AMapperException(notFoundMessage + key, path);
        }
        return raw.get();
    }
View Full Code Here

Examples of com.ajjpj.amapper.core2.exclog.AMapperException

    public void register(Object source, Object target, APath path) {
        if(map.containsKey(source)) {
            final Object prev = map.get(source);
            if(prev == target) {
                throw new AMapperException("duplicate registration of same target " + target + " for " + source, path);
            }
            else {
                throw new  AMapperException("duplicate registration of different target " + target + " and " + prev + " for " + source, path);
            }
        }
        else {
            map.put(source, AOption.some(target));
        }
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.