privex.helpers.exceptions

Exception classes used either by our helpers, or just generic exception names which are missing from the standard base exceptions in Python, and are commonly used across our projects.

Copyright:

    +===================================================+
    |                 © 2019 Privex Inc.                |
    |               https://www.privex.io               |
    +===================================================+
    |                                                   |
    |        Originally Developed by Privex Inc.        |
    |        License: X11 / MIT                         |
    |                                                   |
    |        Core Developer(s):                         |
    |                                                   |
    |          (+)  Chris (@someguy123) [Privex]        |
    |          (+)  Kale (@kryogenic) [Privex]          |
    |                                                   |
    +===================================================+

Copyright 2019     Privex Inc.   ( https://www.privex.io )

Exceptions

BaseDNSException

Base exception for DNS-related exceptions

BoundaryException

Thrown when the v4/v6 address boundary for a reverse DNS record is invalid.

CacheNotFound

Thrown when a cache key is requested, but it doesn’t exist / is expired.

DomainNotFound

Thrown when a (sub)domain or it’s parent(s) could not be found

EncryptKeyMissing

Raised when ENCRYPT_KEY is not set, or invalid

EncryptionError

Raised when something went wrong attempting to encrypt or decrypt a piece of data

GeoIPAddressNotFound

GeoIPDatabaseNotFound

GeoIPException

InvalidDNSRecord

Thrown when a passed DNS record is not valid

InvalidFormat

Raised when an invalid public/private format, or encoding is specified when serializing an asymmetric key pair

InvalidHost

Raised when a passed IP address or hostname/domain is invalid.

NetworkUnreachable

Thrown when a network interface or IP version (e.g.

NotConfigured

Thrown when code attempts to access something that wasn’t fully configured / instantiated by the user.

NotFound

Generic exception mixin for all exceptions related to something not being found

PrivexException

Base exception for all custom Privex exceptions

ReverseDNSNotFound

Raised when a given IP address does not have a reverse DNS set

SysCallError

Raised when an error appears to have been returned after calling an external command (e.g.