An unrecoverable error was hit when attempting to use a connection, or the connection was already closed or defunct.
| 397 | |
| 398 | |
| 399 | class ConnectionException(Exception): |
| 400 | """ |
| 401 | An unrecoverable error was hit when attempting to use a connection, |
| 402 | or the connection was already closed or defunct. |
| 403 | """ |
| 404 | |
| 405 | def __init__(self, message, endpoint=None): |
| 406 | Exception.__init__(self, message) |
| 407 | self.endpoint = endpoint |
| 408 | |
| 409 | @property |
| 410 | def host(self): |
| 411 | return self.endpoint.address |
| 412 | |
| 413 | |
| 414 | class ConnectionShutdown(ConnectionException): |
no outgoing calls
no test coverage detected