Skip to content

Exceptions

Home / python / exceptions

glide.exceptions.GlideError

Bases: Exception

Base class for errors.

Source code in glide/exceptions.py
 6
 7
 8
 9
10
11
12
13
14
15
class GlideError(Exception):
    """
    Base class for errors.
    """

    def __init__(self, message: Optional[str] = None):
        super().__init__(message or "No error message provided")

    def name(self):
        return self.__class__.__name__

glide.exceptions.ClosingError

Bases: GlideError

Errors that report that the client has closed and is no longer usable.

Source code in glide/exceptions.py
18
19
20
21
22
23
class ClosingError(GlideError):
    """
    Errors that report that the client has closed and is no longer usable.
    """

    pass

glide.exceptions.RequestError

Bases: GlideError

Errors that were reported during a request.

Source code in glide/exceptions.py
26
27
28
29
30
31
class RequestError(GlideError):
    """
    Errors that were reported during a request.
    """

    pass

glide.exceptions.TimeoutError

Bases: RequestError

Errors that are thrown when a request times out.

Source code in glide/exceptions.py
34
35
36
37
38
39
class TimeoutError(RequestError):
    """
    Errors that are thrown when a request times out.
    """

    pass

glide.exceptions.ExecAbortError

Bases: RequestError

Errors that are thrown when a transaction is aborted.

Source code in glide/exceptions.py
42
43
44
45
46
47
class ExecAbortError(RequestError):
    """
    Errors that are thrown when a transaction is aborted.
    """

    pass

glide.exceptions.ConnectionError

Bases: RequestError

Errors that are thrown when a connection disconnects. These errors can be temporary, as the client will attempt to reconnect.

Source code in glide/exceptions.py
50
51
52
53
54
55
56
class ConnectionError(RequestError):
    """
    Errors that are thrown when a connection disconnects.
    These errors can be temporary, as the client will attempt to reconnect.
    """

    pass

glide.exceptions.ConfigurationError

Bases: RequestError

Errors that are thrown when a request cannot be completed in current configuration settings.

Source code in glide/exceptions.py
59
60
61
62
class ConfigurationError(RequestError):
    """
    Errors that are thrown when a request cannot be completed in current configuration settings.
    """