guibot.errors module

SUMMARY

Exceptions used by all guibot interfaces and modules.

INTERFACE

exception guibot.errors.GuiBotError[source]

Bases: Exception

GuiBot exception base class

exception guibot.errors.FileNotFoundError[source]

Bases: guibot.errors.GuiBotError

Exception raised when a picture file cannot be found on disc

exception guibot.errors.IncompatibleTargetError[source]

Bases: guibot.errors.GuiBotError

Exception raised when a matched target is of type that cannot be handled by the finder

exception guibot.errors.IncompatibleTargetFileError[source]

Bases: guibot.errors.GuiBotError

Exception raised when a matched target is restored from a file of unsupported type

exception guibot.errors.FindError(failed_target=None)[source]

Bases: guibot.errors.GuiBotError

Exception raised when an Image cannot be found on the screen

__init__(failed_target=None)[source]

Build the exception possibly providing the failed target.

Parameters:failed_target (target.Target or None) – the target that wasn’t found
exception guibot.errors.NotFindError(failed_target=None)[source]

Bases: guibot.errors.GuiBotError

Exception raised when an Image can be found on the screen but should not be

__init__(failed_target=None)[source]

Build the exception possibly providing the failed target.

Parameters:failed_target (target.Target or None) – the target that was found
exception guibot.errors.UnsupportedBackendError[source]

Bases: guibot.errors.GuiBotError

Exception raised when a non-existent method is used for finding a target

exception guibot.errors.MissingHotmapError[source]

Bases: guibot.errors.GuiBotError

Exception raised when an attempt to access a non-existent hotmap in the image logger is made

exception guibot.errors.UninitializedBackendError[source]

Bases: guibot.errors.GuiBotError

Exception raised when a region is created within an empty screen (a disconnected desktop control backend)