ModuleError
public enum ModuleError<SomeError> : ErrorEnum, ErrorWrapping where SomeError : Error
An error caused when trying to use a Module.
-
The module isn’t found when the operation is about to start, either because it’s disabled in the current settings or because it was never added to the
TealiumConfig. No work was started, so retrying the operation after the module is enabled can succeed. An operation that already started fails instead withModuleError.moduleShutdown(_:).moduleis theModule.moduleTypeof the missing module.Declaration
Swift
case moduleNotEnabled(_: String) -
The module was found and had started an operation, but was shut down - either together with the
Tealiuminstance or by a settings update that disabled it - before the operation could complete. Only operations that were already in progress fail with this error. An operation requested after a settings update disabled the module fails instead withModuleError.moduleNotEnabled(_:), and one requested after theTealiuminstance was shut down fails withModuleError.tealiumError(_:)with.instanceShutdown.Declaration
Swift
case moduleShutdown(_: String) -
The
Tealiuminstance failed to initialize or was shut down before aModuleoperation could be started.Declaration
Swift
case tealiumError(_: TealiumError) -
The module failed to perform a specific operation.
Declaration
Swift
case underlyingError(_: SomeError)
View on GitHub