12 lines
339 B
Python
12 lines
339 B
Python
"""ProtocolError, in its own module so transport wrappers (ws.py) and
|
|
applications can import it without the sans-io machinery."""
|
|
|
|
|
|
class ProtocolError(Exception):
|
|
"""Peer, wire, or protocol-misuse failure: log and disconnect."""
|
|
|
|
|
|
class _Burn(Exception):
|
|
# internal handshake -> session signal: the credential must burn
|
|
pass
|