duck.html.components.core.exceptions

Exception classes related to the component system.

Module Contents

API

exception duck.html.components.core.exceptions.AlreadyInRegistry[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised when trying to add a component already in registry.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.ComponentAttributeProtection[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised If protected component attribute is being modified.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.ComponentCopyError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised on component copy issues.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.ComponentNotLoadedError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised if component is not loaded yet it is required for component to be loaded.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.ComponentSystemError[source]

Bases: Exception

Base exception for component system-related errors.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.EventAlreadyBound[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised when trying to bind a component that’s already bound.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.ForceUpdateError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised when there is an issue in forcily updating a component on event

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.FrozenComponentError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised on attempts to mutate frozen components or data.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.HtmlComponentError[source]

Bases: duck.html.components.core.exceptions.ComponentSystemError

Exception raised for errors in the HtmlComponent.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.InitializationError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised upon initialization error.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.JavascriptExecutionError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised when there was a failure in execution of JavaScript on client side due to connection-failure or execution error.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.JavascriptExecutionTimedOut[source]

Bases: duck.html.components.core.exceptions.JavascriptExecutionError

Raised on timeout whilst executing JavaScript code on client side.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.NoParentError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Exception raised for errors when an html component has no parent.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.NoRootError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Exception raised for errors when an html component has no root component.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.RedundantForceUpdate[source]

Bases: duck.html.components.core.exceptions.ForceUpdateError

Raised when redundant updates on force updates

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.RedundantUpdate[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised when redundant update targets conflict due to shared root.

Initialization

Initialize self. See help(type(self)) for accurate signature.

exception duck.html.components.core.exceptions.UnknownEventError[source]

Bases: duck.html.components.core.exceptions.HtmlComponentError

Raised when trying to bind a component to unknown event.

Initialization

Initialize self. See help(type(self)) for accurate signature.