smartinspectpython.siloadconfigurationexception

Module: siloadconfigurationexception.py

Revision History

Date Version Description
2023/05/30 3.0.0.0 Initial Version.

@export
class SILoadConfigurationException(builtins.Exception):

Used to report errors concerning the SmartInspect.LoadConfiguration method.

This exception is used to report errors concerning the SmartInspect.LoadConfiguration method. This method is able to load the SmartInspect properties from a file. Therefore errors can occur when trying to load properties from an inexistent file or when the file can not be opened for reading, for example.

If such an error occurs, an instance of this class will be passed to the SmartInspect.Error event. Please note, that, if a connections string can be read while loading the configuration file, but is found to be invalid then this exception type will not be used. In this case, the SmartInspect.LoadConfiguration method will use the SIInvalidConnectionsException exception instead.

Threadsafety:

This class is not guaranteed to be thread-safe.

SILoadConfigurationException(message, fileName: str, *args, **kwargs)

Initializes a new instance of the class.

Arguments:
  • message (Any): The exception message.
  • fileName (str): The filename that contained the configuration settings.
FileName: str

Gets the FileName property value.

Name of the file which caused this exception while trying to load the SmartInspect properties from it.