"""Exceptions==========Specific exceptions that Optimus code can raise."""
[docs]classOptimusBaseException(Exception):""" Base for Optimus exceptions. """pass
[docs]classDestinationExists(OptimusBaseException):""" Exception to be raised when a destination allready exists for a new project to create. """pass
[docs]classSettingsImportError(OptimusBaseException):""" Exception to be raised when a settings module import fails. """pass
[docs]classTemplateImportError(OptimusBaseException):""" Exception to be raised when a template module import fails. """pass
[docs]classTemplateSettingsInvalidError(OptimusBaseException):""" Exception to be raised when a template manifest have wrong settings. """pass
[docs]classInvalidLangageIdentifier(OptimusBaseException):""" Exception to be raised from ``lang.LangBase`` when given language code is invalid. """pass
[docs]classInvalidSettings(OptimusBaseException):""" Exception to be raised for invalid settings from 'conf.model' """pass
[docs]classViewImproperlyConfigured(OptimusBaseException):""" Exception to be raised from ``pages.view.base.PageViewBase`` when instanciated with bad value or missing parameters. """pass
[docs]classServerConfigurationError(OptimusBaseException):""" Exception to be raised when trying to run live server with a error in given configuration. """pass
[docs]classInvalidHostname(ServerConfigurationError):""" Exception to be raised when a parsed hostname is invalid. """pass
[docs]classDataProcessError(OptimusBaseException):""" Exception to be raised from a view which attempt to parse a data file. """pass