blob: a75e8b391dbc9ac4d5f0b14679e3a9456007bb41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package org.openecomp.sdc.translator.services.heattotosca.errors;
import org.openecomp.sdc.common.errors.BaseErrorBuilder;
import org.openecomp.sdc.common.errors.ErrorCategory;
public final class DuplicateResourceIdsInDifferentFilesErrorBuilder extends BaseErrorBuilder {
private static final String DUPLICATE_RESOURCE_ID_MSG = "Resource with id %s occurs more than once in " +
"different addOn files";
public DuplicateResourceIdsInDifferentFilesErrorBuilder(String resourceId) {
getErrorCodeBuilder().withId(TranslatorErrorCodes.DUPLICATE_RESOURCE_ID_IN_DIFFERENT_FILES)
.withCategory(ErrorCategory.APPLICATION)
.withMessage(String.format(DUPLICATE_RESOURCE_ID_MSG, resourceId));
}
}
|