use of org.dbflute.exception.PluginValueTypeNotFoundException in project dbflute-core by dbflute.
the class TnAbstractPropertyTypeFactory method findValueTypeByName.
protected ValueType findValueTypeByName(String propertyName, Class<?> propertyType, String keyName) {
final ValueType valueType = TnValueTypes.getPluginValueType(keyName);
if (valueType != null) {
return valueType;
}
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Not found the plug-in value type by the name.");
br.addItem("Bean Type");
br.addElement(_beanClass.getName());
br.addItem("Property");
br.addElement(propertyName);
br.addElement(propertyType.getName());
br.addItem("Key Name");
br.addElement(keyName);
final String msg = br.buildExceptionMessage();
throw new PluginValueTypeNotFoundException(msg);
}
use of org.dbflute.exception.PluginValueTypeNotFoundException in project dbflute-core by dbflute.
the class TnProcedureValueTypeProvider method findValueTypeByName.
// ===================================================================================
// By Name
// =======
protected ValueType findValueTypeByName(Class<?> pmbType, String paramName, Class<?> paramType, String keyName) {
final ValueType valueType = TnValueTypes.getPluginValueType(keyName);
if (valueType != null) {
return valueType;
}
final ExceptionMessageBuilder br = new ExceptionMessageBuilder();
br.addNotice("Not found a plug-in value type by the name.");
br.addItem("ProcedurePmb");
br.addElement(pmbType.getName());
br.addItem("Parameter");
br.addElement(paramName);
br.addElement(paramType.getName());
br.addItem("Key Name");
br.addElement(keyName);
final String msg = br.buildExceptionMessage();
throw new PluginValueTypeNotFoundException(msg);
}
Aggregations