optris::sdk::ConfigLoadException
An import that was refused, or that stopped part-way.
A ConfigException -- the file is not usable on this camera -- that carries the account of what happened with it. what() is already ConfigLoadReport::diagnosis, so a caller that only logs needs to know nothing about this type; report() is there for the one that has to decide whether the camera still holds the settings it was showing a minute ago.
Crosses the C ABI as OPTRIS_SDK_ERROR_CONFIGURATION, with the report filled in by optris_sdk_imager_load_config_checked().
Inherits from optris::sdk::ConfigException.
Public functions
ConfigLoadException
ConfigLoadException(ConfigLoadReport report)
Wraps a report. Thrown by the SDK; there is no reason for an application to construct one.
report
auto report() const -> const ConfigLoadReport &
What the import did before it stopped. ConfigLoadReport::applied is the part that matters: on ConfigLoadOutcome::kRefused it is empty and the camera is untouched, and on ConfigLoadOutcome::kPartiallyApplied it names what is in effect.