@EventDoc(module = MODULE_NAME, code = CFG104, desc = "Configurable class have a property of unsupported type.") public static AbortRuntimeException CFG104_UNSUPPORTED_PROPERTY(Class<?> clazz, String property, Class<?> type) { Event event = new Event(MODULE_NAME, CFG104, MessageFormat.format(CFG104_MSG, clazz.getName(), property, type.getName())); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG311, desc = "Default beans cannot be removed.") public static AbortRuntimeException CFG311_DEFAULT_REMOVAL(BeanId id) { Event event = new Event(MODULE_NAME, CFG311, MessageFormat.format(CFG311_MSG, id)); return new AbortRuntimeException(event); } }
@EventDoc(module = MODULE_NAME, code = CFG110, desc = "Bean have property that does not exist in schema.") public static AbortRuntimeException CFG110_PROP_NOT_EXIST_IN_SCHEMA(String propertyName) { Event event = new Event(MODULE_NAME, CFG110, MessageFormat.format(CFG110_MSG, propertyName)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG301, desc = "Bean have a missing references.") public static AbortRuntimeException CFG301_MISSING_RUNTIME_REF(BeanId id, BeanId ref) { Event event = new Event(MODULE_NAME, CFG301, MessageFormat.format(CFG301_MSG_1, id, ref)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG304, desc = "Bean does not exist.") public static AbortRuntimeException CFG304_BEAN_DOESNT_EXIST(BeanId id) { Event event = new Event(MODULE_NAME, CFG304, MessageFormat.format(CFG304_MSG, id)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG306, desc = "Property is not mutable.") public static AbortRuntimeException CFG306_PROPERTY_IMMUTABLE(BeanId id, String propertyName) { Event event = new Event(MODULE_NAME, CFG306, MessageFormat.format(CFG306_MSG, id, propertyName)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG307, desc = "Singleton beans cannot be removed.") public static AbortRuntimeException CFG307_SINGELTON_REMOVAL(BeanId id) { Event event = new Event(MODULE_NAME, CFG307, MessageFormat.format(CFG307_MSG, id)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG309, desc = "Bean application validation failed.") public static AbortRuntimeException CFG309_VALIDATION_ERROR(String msg) { Event event = new Event(MODULE_NAME, CFG309, MessageFormat.format(CFG309_MSG, msg)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG106, desc = "Bean have a property value of invalid multiplicity type according to schema.") public static AbortRuntimeException CFG106_WRONG_MULTIPLICITY_TYPE(BeanId id, String propertyName) { Event event = new Event(MODULE_NAME, CFG106, MessageFormat.format(CFG106_MSG, id, propertyName)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG107, desc = CFG107_MSG) public static AbortRuntimeException CFG107_MISSING_ID() { Event event = new Event(MODULE_NAME, CFG106, CFG107_MSG); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG108, desc = CFG108_MSG) public static AbortRuntimeException CFG108_ILLEGAL_MODIFIERS(Field field) { Event event = new Event(MODULE_NAME, CFG108, MessageFormat.format(CFG108_MSG, field.toString())); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG109, desc = "Bean property have illegal map parameterization.") public static AbortRuntimeException CFG109_ILLEGAL_MAP(String propertyName) { Event event = new Event(MODULE_NAME, CFG109, MessageFormat.format(CFG109_MSG, propertyName)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG111, desc = "Bean have reference that does not exist in schema.") public static AbortRuntimeException CFG111_REF_NOT_EXIST_IN_SCHEMA(String referenceName) { Event event = new Event(MODULE_NAME, CFG111, MessageFormat.format(CFG111_MSG, referenceName)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG103, desc = "Configurable class lacks a Id annotation.") public static AbortRuntimeException CFG103_NO_ID(Class<?> clazz) { Event event = new Event(MODULE_NAME, CFG103, MessageFormat.format(CFG103_MSG, clazz.getName())); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG105, desc = "Bean have property value that does not match schema.") public static AbortRuntimeException CFG105_WRONG_PROPERTY_TYPE(BeanId id, String propertyName, String type, String value) { Event event = new Event(MODULE_NAME, CFG105, MessageFormat.format(CFG105_MSG, id, type + "@" + propertyName, value)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG202, desc = "XML schema storage file does not exist.") public static AbortRuntimeException CFG202_XML_SCHEMA_FILE_MISSING(File dir) { Event event = new Event(MODULE_NAME, CFG202, MessageFormat.format(CFG202_MSG, dir.getAbsolutePath())); throw new AbortRuntimeException(event); }
@EventDoc( module = MODULE_NAME, code = CFG302, desc = "One or more beans cannot be deleted beacuse of existing references from other beans. ") public static AbortRuntimeException CFG302_CANNOT_DELETE_BEAN(Collection<BeanId> id) { Event event = new Event(MODULE_NAME, CFG302, MessageFormat.format(CFG302_MSG, id)); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = JPA201, desc = JPA201_MSG) public static AbortRuntimeException JPA201_PROP_FILEPATH_MISSING(String prop) { Event event = new Event(MODULE_NAME, JPA201, MessageFormat.format(JPA201_MSG, prop)); throw new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = CFG303, desc = "Bean with same identification already exist.") public static AbortRuntimeException CFG303_BEAN_ALREADY_EXIST(BeanId id) { Event event = new Event(MODULE_NAME, CFG303, MessageFormat.format(CFG303_MSG, id.getInstanceId())); return new AbortRuntimeException(event); }
@EventDoc(module = MODULE_NAME, code = JPA203, desc = JPA203_MSG) public static AbortRuntimeException JPA203_MISSING_THREAD_EMF() { Event event = new Event(MODULE_NAME, JPA203, JPA203_MSG); throw new AbortRuntimeException(event); }