py-libp2p/libp2p/security/secio/exceptions.py
Piper Merriam ded3792924
Merge pull request #331 from dmuhs/fix/docs-format
Add automatic docstring formatting
2019-10-28 09:39:52 -06:00

33 lines
527 B
Python

from libp2p.security.exceptions import HandshakeFailure
class SecioException(HandshakeFailure):
pass
class SelfEncryption(SecioException):
"""Raised to indicate that a host is attempting to encrypt communications
with itself."""
pass
class PeerMismatchException(SecioException):
pass
class InvalidSignatureOnExchange(SecioException):
pass
class IncompatibleChoices(SecioException):
pass
class InconsistentNonce(SecioException):
pass
class SedesException(SecioException):
pass