Skip to content

exceptions¤

Exception classes.

ConnectionTimeoutError ¤

ConnectionTimeoutError(message)

Bases: OSError

Raised when the connection to the 32-bit server cannot be established.

Parameters:

Name Type Description Default
message str

The error message.

required
Source code in src/msl/loadlib/exceptions.py
11
12
13
14
15
16
17
18
19
def __init__(self, message: str) -> None:
    """Raised when the connection to the 32-bit server cannot be established.

    Args:
        message: The error message.
    """
    super().__init__(message)
    self.timeout_message: str = message
    self.reason: str = ""

ResponseTimeoutError ¤

Bases: OSError

Raised when a timeout occurs while waiting for a response from the 32-bit server.

Added in version 0.6

Server32Error ¤

Server32Error(value, *, name='', traceback='')

Bases: HTTPException

Raised when an exception occurs on the 32-bit server.

Parameters:

Name Type Description Default
value str

The error message.

required
name str

The name of the exception type.

''
traceback str

The exception traceback from the server.

''

Added in version 0.5

Source code in src/msl/loadlib/exceptions.py
31
32
33
34
35
36
37
38
39
40
41
42
43
44
def __init__(self, value: str, *, name: str = "", traceback: str = "") -> None:
    """Raised when an exception occurs on the 32-bit server.

    Args:
        value: The error message.
        name: The name of the exception type.
        traceback: The exception traceback from the server.

    !!! note "Added in version 0.5"
    """
    super().__init__(f"\n{traceback}\n{name}: {value}" if name else value)
    self._value: str = value
    self._name: str = name
    self._traceback: str = traceback

name property ¤

name

str — The name of the exception type.

traceback property ¤

traceback

str — The exception traceback from the server.

value property ¤

value

str — The error message.