pub enum StartupError {
Show 19 variants
Config(ConfigFileDefinitionError),
LoadConfig(ConfigError),
NotRoot,
InvalidThermalConfig,
Database {
source: Box<SqlInterfaceError>,
},
InvalidBallingConfiguration {
source: BallingError,
},
TcpConnection {
source: TcpCommunicationError,
},
Messaging {
source: MessagingError,
},
GpioHandlerMissing,
InvalidMemoryConfig {
source: MemoryConfigError,
},
VersionInformationRetrievalFailure {
source: VersionInformationError,
},
LoggingSetupFailure {
source: LoggerSetupError,
},
DataLoggerSetupFailure {
source: DataLoggerError,
},
ControllinoSetupFailure {
source: ActuateControllinoError,
},
TankLevelSwitchSetupFailure {
source: TankLevelSwitchError,
},
SensorManagerSetupFailure {
source: SensorManagerError,
},
Ds18b20SetupFailure {
source: Ds18b20Error,
},
PidCheckError {
source: PublishPidError,
},
WatchdogSetupFailure {
source: WatchdogError,
},
}Expand description
Contains top-level error definitions for errors which may happen at startup. No additional parameter to identify the module is required here.
Variants§
Config(ConfigFileDefinitionError)
Invalid command-line arguments
LoadConfig(ConfigError)
The error message will come directly from ConfigError.
NotRoot
This application must be run as root.
InvalidThermalConfig
Configuration of temperature ranges for heating and ventilation control is not valid.
Database
A database error occurred.
Fields
source: Box<SqlInterfaceError>InvalidBallingConfiguration
The Balling dosing configuration is invalid.
Fields
source: BallingErrorTcpConnection
Could not open TCP connection to test server.
Fields
source: TcpCommunicationErrorMessaging
Could not open POSIX message queue.
Fields
source: MessagingErrorGpioHandlerMissing
Configuration error: GPIO handler not initialized.
InvalidMemoryConfig
Configuration error: Memory configuration of the operating system is invalid.
Fields
source: MemoryConfigErrorVersionInformationRetrievalFailure
Could not retrieve version information.
Fields
source: VersionInformationErrorLoggingSetupFailure
Could not initialize the logging system.
Fields
source: LoggerSetupErrorDataLoggerSetupFailure
Could not initialize the data recording system.
Fields
source: DataLoggerErrorControllinoSetupFailure
Could not initialize communication with Controllino.
Fields
source: ActuateControllinoErrorTankLevelSwitchSetupFailure
Could not initialize the tank level switch measurement and calculation.
Fields
source: TankLevelSwitchErrorSensorManagerSetupFailure
Could not initialize the sensor manager.
Fields
source: SensorManagerErrorDs18b20SetupFailure
Could not initialize the Ds18b20 sensor communication.
Fields
source: Ds18b20ErrorPidCheckError
Could not check for an already running version of the application.
Fields
source: PublishPidErrorWatchdogSetupFailure
Could not set up watchdog.
Fields
source: WatchdogError