Skip to content

Exceptions

Home / python / shared / exceptions

glide_shared.exceptions.GlideError

Bases: Exception

Base class for errors.

Source code in glide_shared/exceptions.py
 8
 9
10
11
12
13
14
15
16
17
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_shared.exceptions.ClosingError

Bases: GlideError

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

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

    pass

glide_shared.exceptions.RequestError

Bases: GlideError

Errors that were reported during a request.

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

    pass

glide_shared.exceptions.TimeoutError

Bases: RequestError

Errors that are thrown when a request times out.

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

    pass

glide_shared.exceptions.ExecAbortError

Bases: RequestError

Errors that are thrown when a transaction is aborted.

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

    pass

glide_shared.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_shared/exceptions.py
52
53
54
55
56
57
58
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_shared.exceptions.ConfigurationError

Bases: RequestError

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

Source code in glide_shared/exceptions.py
61
62
63
64
65
66
class ConfigurationError(RequestError):
    """
    Errors that are thrown when a request cannot be completed in current configuration settings.
    """

    pass