4.8. TM Errors

4.8.1. dyn.tm.errors module

This module contains all DynectDNS Errors. Each Error subclass inherits from the base DynectError class which is only ever directly raised if something completely unexpected happens TODO: add a DynectInvalidPermissionsError

exception dyn.tm.errors.DynectAuthError(*args, **kwargs)[source]

Error raised if Authentication to Dynect failed

__init__(*args, **kwargs)[source]

Format this errors message to report back the JSON messages returned from a faulty Session POST

exception dyn.tm.errors.DynectInvalidArgumentError(arg, value, valid_args=None)[source]

Error raised if a given argument is determined to be invalid

__init__(arg, value, valid_args=None)[source]

Format this error’s message to report back the invalid argument and a list of valid arguments, if such a list exists

exception dyn.tm.errors.DynectCreateError(*args, **kwargs)[source]

Error raised if an API POST method returns with a failure

__init__(*args, **kwargs)[source]

Format this error’s message to report back the JSON error message(s)

exception dyn.tm.errors.DynectUpdateError(*args, **kwargs)[source]

Error raised if an API PUT method returns with a failure

__init__(*args, **kwargs)[source]

Format this error’s message to report back the JSON error message(s)

exception dyn.tm.errors.DynectGetError(*args, **kwargs)[source]

Error raised if an API PUT method returns with a failure

__init__(*args, **kwargs)[source]

Format this error’s message to report back the JSON error message(s)

exception dyn.tm.errors.DynectDeleteError(*args, **kwargs)[source]

Error raised if an API DELETE method returns with a failure

__init__(*args, **kwargs)[source]

Format this error’s message to report back the JSON error message(s)

exception dyn.tm.errors.DynectQueryTimeout(*args, **kwargs)[source]

Error raised if an API call times out even after waiting for a response

__init__(*args, **kwargs)[source]

Format this error’s message to report back the JSON error message(s)