OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

ConfigurationLoadException

public sealed class ConfigurationLoadException : SdkConfigurationException

An import that was refused, or that stopped part-way.

A configuration error -- the file is not usable on this camera -- that carries the account of what happened with it. Exception.Message is already ConfigurationLoadReport.Diagnosis, so code that only logs needs to know nothing about this type; ConfigurationLoadException.Report is there for code that has to decide whether the camera still holds the settings it was showing a minute ago.

ConfigurationLoadException: properties

public ConfigurationLoadReport Report { get; }

What the import did before it stopped.

ConfigurationLoadReport.Applied is the part that matters: on ConfigurationLoadOutcome.Refused it is empty and the camera is untouched, and on ConfigurationLoadOutcome.PartiallyApplied it names what is in effect.