mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Add explicit exception if we are missing a deserializer
This commit is contained in:
14
libp2p/crypto/exceptions.py
Normal file
14
libp2p/crypto/exceptions.py
Normal 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
|
||||
Reference in New Issue
Block a user