Exceptions (Use them in your project!)

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

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

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.

PrivexException

Base exception for all custom Privex exceptions

SysCallError

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