exceptions

Exceptions module.

exception wmflib.exceptions.WmflibError[source]

Bases: Exception

Parent exception class for all wmflib exceptions.

__annotations__ = {}
__doc__ = 'Parent exception class for all wmflib exceptions.'
__module__ = 'wmflib.exceptions'
__weakref__

list of weak references to the object

exception wmflib.exceptions.WmflibCheckError[source]

Bases: WmflibError

Parent exception class for all wmflib exceptions regarding checks.

Particularly useful when some write action is performed and then checked but in dry-run mode, as in this mode the write action will not actually change anything and the check will then fail, but should catchable separately from the other potential exceptions that could be raised.

__annotations__ = {}
__doc__ = 'Parent exception class for all wmflib exceptions regarding checks.\n\n    Particularly useful when some write action is performed and then checked but in dry-run mode, as in this mode the\n    write action will not actually change anything and the check will then fail, but should catchable separately from\n    the other potential exceptions that could be raised.\n    '
__module__ = 'wmflib.exceptions'