Module svnmailer.main
This module is the central core of the svnmailer. It dispatches all work to be
done. It contains just one class (Main
), which reads the config file while
it is initialized. When the Main.run
method is called, it selects the
groups to be notified, the notifiers to be run and runs all notifiers for
each group.
The Main
class may raise several exceptions (which all inherit from Error
):
ConfigError
occurs, if the configuration contains errors (like type
or value errors, unicode errors etc). The ConfigError
exception is
initialized with a string describing what kind of error occured.
NotifierError
occurs, if one or more of the notifiers throw an
exception. The Main
class catches these exceptions (except
KeyboardInterrupt and SystemExit) and will initialize the
NotifierError
with the list of traceback strings, one for each
exception occured. (See the format_exception docs).
svnmailer.subversion.RepositoryError
occurs, if something failed
while accessing the subversion repository. It contains some attributes
for identifying the error: svn_err_code, svn_err_name and
svn_err_str
Classes |
Main |
Main svnmailer logic |