public static final class FeatureSaveErrorInfo.Builder extends Object implements AutoCloseable
Builder
that allows FeatureSaveErrorInfo
instances to be created.Constructor and Description |
---|
Builder(FeatureSaveErrorInfo.Builder other) |
Modifier and Type | Method and Description |
---|---|
FeatureSaveErrorInfo.Builder |
addFeatureError(long featureId,
ErrorInfo errorInfo)
Adds a
feature error. |
FeatureSaveErrorInfo |
build()
Build the
FeatureSaveErrorInfo instance. |
void |
close() |
protected void |
finalize() |
FeatureSaveErrorInfo.Builder |
generalError(ErrorInfo errorInfo)
Sets a
general error. |
public Builder(@NotNull FeatureSaveErrorInfo.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public FeatureSaveErrorInfo build() throws IllegalStateException
FeatureSaveErrorInfo
instance.FeatureSaveErrorInfo
.IllegalStateException
- If no errors were set.@NotNull public FeatureSaveErrorInfo.Builder generalError(@NotNull ErrorInfo errorInfo)
general
error.errorInfo
- the error info.@NotNull public FeatureSaveErrorInfo.Builder addFeatureError(long featureId, @NotNull ErrorInfo errorInfo)
feature
error.featureId
- the feature id of the feature involved in the save failure.errorInfo
- the error info.