profile_manager.exceptions module

Custom exceptions.

exception profile_manager.exceptions.InvalidItemError(message: str, *, item_type: str | None = None, item_name: str | None = None)[source]

Bases: ItemImportError, ValueError

An item read from the source profile is invalid (null or unnamed).

exception profile_manager.exceptions.ItemImportError(message: str, *, item_type: str | None = None, item_name: str | None = None)[source]

Bases: ProfileManagerError, RuntimeError

An item (bookmark, style item…) cannot be written to the target profile.

exception profile_manager.exceptions.ProfileManagerError[source]

Bases: Exception

Base class for expected, user-facing errors raised by the plugin.

exception profile_manager.exceptions.StyleDatabaseError[source]

Bases: ProfileManagerError, RuntimeError

A style database (symbology-style.db) cannot be loaded.

exception profile_manager.exceptions.StyleDatabaseNotFoundError[source]

Bases: ProfileManagerError, FileNotFoundError

A style database (symbology-style.db) does not exist.