[docs]class RealValidationError(Exception):
"""Base class for exceptions in this module."""
pass
[docs]class InvalidTokenError(RealValidationError):
"""Raised when a token couldn't be enumerated. Tokens can passed as a
parameter when initializing a ``RealValidation`` object or by setting the
``RV_TOKEN`` environmental variable before execution.
"""
pass
[docs]class InvalidJSONResponseError(RealValidationError):
"""Raised when we couldn't decode a JSON response from a RealValidation
API Request
"""
pass
[docs]class ResponseCodeNotOkError(RealValidationError):
"""Raised when ``RESPONSECODE`` in a RealValidation JSON response does not
equal ``OK``
"""
pass