mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Change the exception handling flow. Raise `SecurityUpgradeFailure` in security_multistream.
15 lines
277 B
Python
15 lines
277 B
Python
from libp2p.exceptions import BaseLibp2pError
|
|
|
|
|
|
# TODO: Add `BaseLibp2pError` and `UpgradeFailure` can inherit from it?
|
|
class UpgradeFailure(BaseLibp2pError):
|
|
pass
|
|
|
|
|
|
class SecurityUpgradeFailure(UpgradeFailure):
|
|
pass
|
|
|
|
|
|
class HandshakeFailure(BaseLibp2pError):
|
|
pass
|