2019-08-21 15:12:35 +08:00
|
|
|
from libp2p.exceptions import BaseLibp2pError
|
|
|
|
|
|
|
|
|
2019-08-20 16:42:34 +08:00
|
|
|
# TODO: Add `BaseLibp2pError` and `UpgradeFailure` can inherit from it?
|
2019-08-21 15:12:35 +08:00
|
|
|
class UpgradeFailure(BaseLibp2pError):
|
2019-08-20 16:42:34 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class SecurityUpgradeFailure(UpgradeFailure):
|
|
|
|
pass
|
2019-08-21 15:12:35 +08:00
|
|
|
|
|
|
|
|
|
|
|
class HandshakeFailure(BaseLibp2pError):
|
|
|
|
pass
|