The watcher.common.exception Module

Watcher base exception handling.

Includes decorator for re-raising Watcher-type exceptions.

SHOULD include dedicated exception logging.

exception watcher.common.exception.ActionAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.ActionFilterCombinationProhibited(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.ActionNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.ActionPlanAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.ActionPlanNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.ActionPlanReferenced(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.ActionReferenced(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.AuditAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.AuditIntervalNotAllowed(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.AuditIntervalNotSpecified(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.AuditNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.AuditParameterNotAllowed(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.AuditReferenced(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.AuditTemplateAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.AuditTemplateNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.AuditTemplateReferenced(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.AuditTypeNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.AuthorizationFailure(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.CapacityNotDefined(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.ClusterDataModelCollectionError(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.ClusterEmpty(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.ClusterStateNotDefined(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.ComputeNodeNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.Conflict(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.EagerlyLoadedAuditRequired(message=None, **kwargs)[source]

Bases: watcher.common.exception.InvalidAudit

exception watcher.common.exception.EfficacyIndicatorAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.EfficacyIndicatorNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.GlobalEfficacyComputationError(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.GoalAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.GoalNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.HTTPNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.IllegalArgumentException(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.InstanceNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.Invalid(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.InvalidAudit(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.InvalidGoal(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.InvalidIdentity(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.InvalidIndicatorValue(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.InvalidName(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.InvalidOperator(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.InvalidStrategy(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.InvalidUUID(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.InvalidUuidOrName(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.KeystoneFailure(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.LoadingError(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.MetricCollectorNotDefined(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NegativeLimitError(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NoAvailableStrategyForGoal(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NoDataFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NoMetricValuesForInstance(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NoSuchMetric(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NoSuchMetricForHost(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NotAuthorized(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NotSoftDeletedStateError(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.NotificationPayloadError(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.ObjectNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.OperationNotPermitted(message=None, **kwargs)[source]

Bases: watcher.common.exception.NotAuthorized

exception watcher.common.exception.PatchError(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

exception watcher.common.exception.PolicyNotAuthorized(message=None, **kwargs)[source]

Bases: watcher.common.exception.NotAuthorized

exception watcher.common.exception.ReservedWord(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.ResourceNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ObjectNotFound

exception watcher.common.exception.ScoringEngineAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.ScoringEngineNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.ServiceAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.ServiceNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.StrategyAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

exception watcher.common.exception.StrategyNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.ResourceNotFound

exception watcher.common.exception.UnsupportedError(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.WatcherException(message=None, **kwargs)[source]

Bases: exceptions.Exception

Base Watcher Exception

To correctly use this class, inherit from it and define a ‘msg_fmt’ property. That msg_fmt will get printf’d with the keyword arguments provided to the constructor.

format_message()[source]
exception watcher.common.exception.WildcardCharacterIsUsed(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.WorkflowExecutionException(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException