|
7 | 7 | from stompman.config import ConnectionParameters
|
8 | 8 |
|
9 | 9 |
|
10 |
| -@dataclass(frozen=True, kw_only=True, slots=True) |
| 10 | +@dataclass(kw_only=True) |
11 | 11 | class Error(Exception):
|
12 | 12 | def __str__(self) -> str:
|
13 | 13 | return self.__repr__()
|
14 | 14 |
|
15 | 15 |
|
16 |
| -@dataclass(frozen=True, kw_only=True, slots=True) |
| 16 | +@dataclass(kw_only=True) |
17 | 17 | class ConnectionLostError(Error):
|
18 | 18 | """Raised in stompman.AbstractConnection—and handled in stompman.ConnectionManager, therefore is private."""
|
19 | 19 |
|
20 | 20 |
|
21 |
| -@dataclass(frozen=True, kw_only=True, slots=True) |
| 21 | +@dataclass(kw_only=True) |
22 | 22 | class ConnectionConfirmationTimeoutError(Error):
|
23 | 23 | timeout: int
|
24 | 24 | frames: list[MessageFrame | ReceiptFrame | ErrorFrame | HeartbeatFrame]
|
25 | 25 |
|
26 | 26 |
|
27 |
| -@dataclass(frozen=True, kw_only=True, slots=True) |
| 27 | +@dataclass(kw_only=True) |
28 | 28 | class UnsupportedProtocolVersionError(Error):
|
29 | 29 | given_version: str
|
30 | 30 | supported_version: str
|
31 | 31 |
|
32 | 32 |
|
33 |
| -@dataclass(frozen=True, kw_only=True, slots=True) |
| 33 | +@dataclass(kw_only=True) |
34 | 34 | class FailedAllConnectAttemptsError(Error):
|
35 | 35 | servers: list["ConnectionParameters"]
|
36 | 36 | retry_attempts: int
|
37 | 37 | retry_interval: int
|
38 | 38 | timeout: int
|
39 | 39 |
|
40 | 40 |
|
41 |
| -@dataclass(frozen=True, kw_only=True, slots=True) |
| 41 | +@dataclass(kw_only=True) |
42 | 42 | class RepeatedConnectionLostError(Error):
|
43 | 43 | retry_attempts: int
|
0 commit comments