2019-08-21 15:12:35 +08:00
|
|
|
class BaseLibp2pError(Exception):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class ValidationError(BaseLibp2pError):
|
2019-10-24 14:41:10 +08:00
|
|
|
"""Raised when something does not pass a validation check."""
|
2019-08-26 20:35:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
class ParseError(BaseLibp2pError):
|
|
|
|
pass
|
2019-12-17 19:00:11 +08:00
|
|
|
|
|
|
|
|
|
|
|
class MultiError(BaseLibp2pError):
|
|
|
|
"""Raised with multiple exceptions."""
|
|
|
|
|
|
|
|
# todo: find some way for this to fancy-print all encapsulated errors
|