LuciadCPillar 2023.1.04
|
This class contains details on a failed IFeatureModel
save
.
More...
#include <luciad/models/features/FeatureSaveErrorInfo.h>
Classes | |
class | Builder |
Builder that allows FeatureSaveErrorInfo instances to be created. More... | |
Public Member Functions | |
ErrorInfo | getFeatureError (FeatureId featureId) const |
Retrieves the ErrorInfo associated with a specific feature. More... | |
std::vector< FeatureId > | getFeatureIds () const |
If the save action fails because one or more features can't be added, updated or removed, this method returns a non-empty list containing the id's of the features involved in the save action failure. More... | |
std::optional< ErrorInfo > | getGeneralError () const |
If the save action failed because of an error not related to specific features, this method returns information on that error. More... | |
Static Public Member Functions | |
static Builder | newBuilder () |
Returns a new FeatureSaveErrorInfo builder. More... | |
This class contains details on a failed IFeatureModel
save
.
It can contain a general error
or one or more feature-specific errors
, or both, but never neither.
A general error
can, for example, be a database connection failure or the lack of permissions to write to a file.
A feature error
can, for example, be a violation of a constraint enforced by the backend on features.
Retrieves the ErrorInfo
associated with a specific feature.
ErrorInfo
associated with a specific feature. luciad::InvalidArgumentException | when a featureId with no associated ErrorInfo is used (that is, not in the list obtained from getFeatureIds ). |
std::vector< FeatureId > luciad::FeatureSaveErrorInfo::getFeatureIds | ( | ) | const |
If the save action fails because one or more features can't be added, updated or removed, this method returns a non-empty list containing the id's of the features involved in the save action failure.
Note that an IFeatureModel
may abort after the first failure, with other failing feature changes possible being present.
std::optional< ErrorInfo > luciad::FeatureSaveErrorInfo::getGeneralError | ( | ) | const |
If the save action failed because of an error not related to specific features, this method returns information
on that error.
|
static |
Returns a new FeatureSaveErrorInfo builder.