Exceptions¶
Specific exceptions that Optimus code can raise.
-
exception
optimus.exceptions.
OptimusBaseException
[source]¶ Bases:
Exception
Base for Optimus exceptions.
-
exception
optimus.exceptions.
DestinationExists
[source]¶ Bases:
optimus.exceptions.OptimusBaseException
Exception to be raised when a destination allready exists for a new project to create.
-
exception
optimus.exceptions.
SettingsImportError
[source]¶ Bases:
optimus.exceptions.OptimusBaseException
Exception to be raised when a settings module import fails.
-
exception
optimus.exceptions.
TemplateImportError
[source]¶ Bases:
optimus.exceptions.OptimusBaseException
Exception to be raised when a template module import fails.
-
exception
optimus.exceptions.
TemplateSettingsInvalidError
[source]¶ Bases:
optimus.exceptions.OptimusBaseException
Exception to be raised when a template manifest have wrong settings.
-
exception
optimus.exceptions.
InvalidLangageIdentifier
[source]¶ Bases:
optimus.exceptions.OptimusBaseException
Exception to be raised from
lang.LangBase
when given language code is invalid.
-
exception
optimus.exceptions.
InvalidSettings
[source]¶ Bases:
optimus.exceptions.OptimusBaseException
Exception to be raised for invalid settings from ‘conf.model’
-
exception
optimus.exceptions.
ViewImproperlyConfigured
[source]¶ Bases:
optimus.exceptions.OptimusBaseException
Exception to be raised from
pages.view.base.PageViewBase
when instanciated with bad value or missing parameters.
-
exception
optimus.exceptions.
ServerConfigurationError
[source]¶ Bases:
optimus.exceptions.OptimusBaseException
Exception to be raised when trying to run live server with a error in given configuration.
-
exception
optimus.exceptions.
InvalidHostname
[source]¶ Bases:
optimus.exceptions.ServerConfigurationError
Exception to be raised when a parsed hostname is invalid.