Examples of TranslatableJsonException


Examples of com.serotonin.m2m2.i18n.TranslatableJsonException

        JsonValue jsonImageId = jsonObject.get("imageSet");
        if (jsonImageId != null) {
            String id = jsonImageId.toString();
            imageSet = Common.getImageSet(id);
            if (imageSet == null)
                throw new TranslatableJsonException("emport.error.component.unknownImageSet", id,
                        Common.getImageSetIds());
        }
    }
View Full Code Here

Examples of com.serotonin.m2m2.i18n.TranslatableJsonException

        JsonObject jsonChildren = jsonObject.getJsonObject("children");
        if (jsonChildren != null) {
            for (Map.Entry<String, JsonValue> jsonChild : jsonChildren.entrySet()) {
                CompoundChild child = getChild(jsonChild.getKey());
                if (child == null || !child.getViewComponent().isPointComponent())
                    throw new TranslatableJsonException("emport.error.compound.invalidChildId", jsonChild.getKey(),
                            definition().getId(), getPointComponentChildIds());
                jsonReadDataPoint(jsonChild.getValue(), (PointComponent) child.getViewComponent());
            }
        }
    }
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.