def error(self, msg, timeout=None):
raise ModuleErrorException(msg, timeout)<EOL>
Raise an error for the module.

:param msg: message to be displayed explaining the error
:param timeout: how long before we should retry.  For permanent errors
    `py3.CACHE_FOREVER` should be returned.  If not supplied then the
    modules `cache_timeout` will be used.