mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
17 lines
352 B
Python
17 lines
352 B
Python
class BaseLibp2pError(Exception):
|
|
pass
|
|
|
|
|
|
class ValidationError(BaseLibp2pError):
|
|
"""Raised when something does not pass a validation check."""
|
|
|
|
|
|
class ParseError(BaseLibp2pError):
|
|
pass
|
|
|
|
|
|
class MultiError(BaseLibp2pError):
|
|
"""Raised with multiple exceptions."""
|
|
|
|
# todo: find some way for this to fancy-print all encapsulated errors
|