# -*- coding: utf-8 -*-
"""
"""
from __future__ import unicode_literals
from __future__ import print_function
[docs]class BaseError(Exception):
pass
[docs]class ValidationError(BaseError):
""" The caller failed to pass the restrictions imposed by callee. """
pass
[docs]class MessageValidationError(ValidationError):
""" The message cannot be decoded because required fields are missing
or objects have improper type. """
pass
[docs]class MissingCertificateError(object):
""" We were asked to connect to a peer but we don't have its
certificate. """
pass