realvalidation.errors

Module Contents

exception RealValidationError

Bases:Exception

Base class for exceptions in this module.

exception InvalidTokenError

Bases:realvalidation.errors.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.

exception InvalidPhoneFormatError

Bases:realvalidation.errors.RealValidationError

Raised when a phone string doesn’t match PHONE_REGEX

exception InvalidJSONResponseError

Bases:realvalidation.errors.RealValidationError

Raised when we couldn’t decode a JSON response from a RealValidation API Request

exception ResponseCodeNotOkError

Bases:realvalidation.errors.RealValidationError

Raised when RESPONSECODE in a RealValidation JSON response does not equal OK