class IndexManagerException(Exception): """Base exception class for IndexManager related errors.""" class AliasNotCreatedError(IndexManagerException): """Exception raised when attempting to create the alias to the new index.""" class AliasNotUpdatedError(IndexManagerException): """Exception raised when attempting to update the main alias to the new index.""" class IndexMappingFilenameError(IndexManagerException): """Exception raised when unable to return a mapping filename from the configuration constant.""" class IndexNotFoundError(IndexManagerException): """Exception raised when attempting to use an index that does not exist.""" class IndexNotCreatedError(IndexManagerException): """Exception raised when attempting to create a new index.""" class IndexSettingsUpdateError(IndexManagerException): """Exception raised when attempting to update index settings.""" class PostReindexError(IndexManagerException): """Exception raised when attempting to move aliases during incomplete reindex task.""" class TaskResultError(IndexManagerException): """Exception raised when there is a bad response querying from the Task API.""" class ReIndexRequestError(IndexManagerException): """Exception raised when the reindex response is falsey.""" class SetLifecyclePolicyByAliasError(IndexManagerException): """Exception raised when the set policy response is falsey."""