Raised when connecting to a URI that isn't a valid WebSocket URI.
| 164 | |
| 165 | |
| 166 | class InvalidURI(WebSocketException): |
| 167 | """ |
| 168 | Raised when connecting to a URI that isn't a valid WebSocket URI. |
| 169 | |
| 170 | """ |
| 171 | |
| 172 | def __init__(self, uri: str, msg: str) -> None: |
| 173 | self.uri = uri |
| 174 | self.msg = msg |
| 175 | |
| 176 | def __str__(self) -> str: |
| 177 | return f"{self.uri} isn't a valid URI: {self.msg}" |
| 178 | |
| 179 | |
| 180 | class InvalidProxy(WebSocketException): |