Exceptions

Exception Classes for the xdg package

exception xdg.Exceptions.DuplicateGroupError(group, file)[source]

Raised when the same key occurs twice in an INI-style file.

Attributes are .group and .file.

exception xdg.Exceptions.DuplicateKeyError(key, group, file)[source]

Raised when the same key occurs twice in an INI-style file.

Attributes are .key, .group and .file.

exception xdg.Exceptions.Error(msg)[source]

Base class for exceptions defined here.

exception xdg.Exceptions.NoGroupError(group, file)[source]

Raised when trying to access a nonexistant group in an INI-style file.

Attributes are .group and .file.

exception xdg.Exceptions.NoKeyError(key, group, file)[source]

Raised when trying to access a nonexistant key in an INI-style file.

Attributes are .key, .group and .file.

exception xdg.Exceptions.NoThemeError(theme)[source]

Raised when trying to access a nonexistant icon theme.

The name of the theme is the .theme attribute.

exception xdg.Exceptions.ParsingError(msg, file)[source]

Raised when a file cannot be parsed.

The filename is the .file attribute.

exception xdg.Exceptions.ValidationError(msg, file)[source]

Raised when a file fails to validate.

The filename is the .file attribute.