Add explicit exception if we are missing a deserializer

This commit is contained in:
Alex Stokes
2019-09-24 09:38:59 -07:00
parent 6e53849604
commit bbd8279811
2 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,14 @@
from libp2p.exceptions import BaseLibp2pError
class CryptographyError(BaseLibp2pError):
pass
class MissingDeserializerError(CryptographyError):
"""
Raise if the requested deserialization routine is missing for
some type of cryptographic key.
"""
pass