LuciadCPillar 2023.1.05
luciad::FeatureSaveErrorInfo::Builder Class Referencefinal

Builder that allows FeatureSaveErrorInfo instances to be created. More...

#include <luciad/models/features/FeatureSaveErrorInfo.h>

Public Member Functions

 Builder (const Builder &other)
 
 ~Builder ()
 
BuilderaddFeatureError (FeatureId featureId, ErrorInfo errorInfo)
 Adds a feature error. More...
 
FeatureSaveErrorInfo build ()
 Build the FeatureSaveErrorInfo instance. More...
 
BuildergeneralError (ErrorInfo errorInfo)
 Sets a general error. More...
 

Detailed Description

Builder that allows FeatureSaveErrorInfo instances to be created.

Since
2023.1

Constructor & Destructor Documentation

◆ Builder()

luciad::FeatureSaveErrorInfo::Builder::Builder ( const Builder other)

◆ ~Builder()

luciad::FeatureSaveErrorInfo::Builder::~Builder ( )

Member Function Documentation

◆ addFeatureError()

Builder & luciad::FeatureSaveErrorInfo::Builder::addFeatureError ( FeatureId  featureId,
ErrorInfo  errorInfo 
)

Adds a feature error.

Parameters
featureIdthe feature id of the feature involved in the save failure.
errorInfothe error info.
Returns
this builder.

◆ build()

FeatureSaveErrorInfo luciad::FeatureSaveErrorInfo::Builder::build ( )

Build the FeatureSaveErrorInfo instance.

Returns
the FeatureSaveErrorInfo.
Exceptions
luciad::LogicExceptionIf no errors were set.

◆ generalError()

Builder & luciad::FeatureSaveErrorInfo::Builder::generalError ( ErrorInfo  errorInfo)

Sets a general error.

Parameters
errorInfothe error info.
Returns
this builder.