Raised when a public method is called on a closed CDP connection.
| 158 | |
| 159 | |
| 160 | class CdpConnectionClosed(WsConnectionClosed): |
| 161 | """Raised when a public method is called on a closed CDP connection.""" |
| 162 | |
| 163 | def __init__(self, reason): |
| 164 | """Constructor. |
| 165 | |
| 166 | Args: |
| 167 | reason: wsproto.frame_protocol.CloseReason |
| 168 | """ |
| 169 | self.reason = reason |
| 170 | |
| 171 | def __repr__(self): |
| 172 | """Return representation.""" |
| 173 | return f"{self.__class__.__name__}<{self.reason}>" |
| 174 | |
| 175 | |
| 176 | class InternalError(Exception): |