Package com.luciad.models.features
Class FeatureSaveErrorInfo.Builder
java.lang.Object
com.luciad.models.features.FeatureSaveErrorInfo.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
FeatureSaveErrorInfo
Builder
that allows FeatureSaveErrorInfo
instances to be created.- Since:
- 2023.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddFeatureError
(long featureId, ErrorInfo errorInfo) Adds afeature
error.build()
Build theFeatureSaveErrorInfo
instance.void
close()
protected void
finalize()
generalError
(ErrorInfo errorInfo) Sets ageneral
error.
-
Constructor Details
-
Builder
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
build
Build theFeatureSaveErrorInfo
instance.- Returns:
- the
FeatureSaveErrorInfo
. - Throws:
IllegalStateException
- If no errors were set.
-
generalError
Sets ageneral
error.- Parameters:
errorInfo
- the error info.- Returns:
- this builder.
-
addFeatureError
@NotNull public FeatureSaveErrorInfo.Builder addFeatureError(long featureId, @NotNull ErrorInfo errorInfo) Adds afeature
error.- Parameters:
featureId
- the feature id of the feature involved in the save failure.errorInfo
- the error info.- Returns:
- this builder.
-