本文整理匯總了Java中com.rapidminer.operator.ProcessSetupError.Severity.ERROR屬性的典型用法代碼示例。如果您正苦於以下問題:Java Severity.ERROR屬性的具體用法?Java Severity.ERROR怎麽用?Java Severity.ERROR使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類com.rapidminer.operator.ProcessSetupError.Severity
的用法示例。
在下文中一共展示了Severity.ERROR屬性的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: performAdditionalChecks
@Override
protected void performAdditionalChecks() {
super.performAdditionalChecks();
if (getParameterAsBoolean(PARAMETER_PROPAGATE_METADATA_RECURSIVELY)) {
if (cachedProcess == null) {
try {
cachedProcess = loadIncludedProcess();
} catch (Exception e) {
cachedError = new SimpleProcessSetupError(Severity.ERROR, getPortOwner(), "cannot_load_included_process", e.getMessage());
addError(cachedError);
}
} else {
if (cachedError != null) {
addError(cachedError);
}
}
}
}
示例2: getWeightCalculationError
@Override
public MetaDataError getWeightCalculationError(OutputPort weightPort) {
try {
return new SimpleMetaDataError(Severity.ERROR, weightPort,
Collections.singletonList(new ParameterSettingQuickFix(this, PARAMETER_KERNEL_TYPE, "0",
"correct_parameter_settings_by", PARAMETER_KERNEL_TYPE, KERNEL_TYPES[0])),
"parameters.setting_incompatible_for_delivering", "AttributeWeights", PARAMETER_KERNEL_TYPE,
KERNEL_TYPES[getParameterAsInt(PARAMETER_KERNEL_TYPE)]);
} catch (UndefinedParameterError e) {
return super.getWeightCalculationError(weightPort);
}
}
示例3: getWeightCalculationError
@Override
public MetaDataError getWeightCalculationError(OutputPort weightPort) {
try {
return new SimpleMetaDataError(Severity.ERROR, weightPort,
Collections.singletonList(new ParameterSettingQuickFix(this, PARAMETER_KERNEL_TYPE, "0", "correct_parameter_settings_by", PARAMETER_KERNEL_TYPE, KERNEL_TYPES[0])),
"parameters.setting_incompatible_for_delivering", "AttributeWeights", PARAMETER_KERNEL_TYPE, KERNEL_TYPES[getParameterAsInt(PARAMETER_KERNEL_TYPE)]);
} catch (UndefinedParameterError e) {
return super.getWeightCalculationError(weightPort);
}
}
示例4: getWeightCalculationError
public MetaDataError getWeightCalculationError(OutputPort weightPort) {
return new SimpleMetaDataError(Severity.ERROR, weightPort, "parameters.incompatible_for_delivering",
"AttributeWeights");
}
示例5: getWeightCalculationError
public MetaDataError getWeightCalculationError(OutputPort weightPort) {
return new SimpleMetaDataError(Severity.ERROR, weightPort, "parameters.incompatible_for_delivering", "AttributeWeights");
}