5. MM Errors

Below are the various errors you may see be raised while using the dyn.mm module along with brief descriptions about when those exceptions are raised.

5.1. dyn.mm.errors module

This module contains all Dyn Email Errors. Each Error subclass inherits from the base EmailError class which is only ever directly raised if something completely unexpected happens

exception dyn.mm.errors.EmailKeyError(reason)[source]

Error raised if the associated API Key is missing or invalid

exception dyn.mm.errors.DynInvalidArgumentError(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.mm.errors.EmailInvalidArgumentError(reason)[source]

Error raised if a required field is not provided. However, due to the nature or the wrapper being used this error is most likely caused but uncaught invalid input (i.e., letters instead of numbers, etc.).

exception dyn.mm.errors.EmailObjectError(reason)[source]

This error can come up if you try to create an object that already exists on the Dyn Email system.

exception dyn.mm.errors.NoSuchAccountError(reason)[source]

Error raised if you attempt to GET an Account that does not exist, or is not accessible to you