The watcher.common.exception Module

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.ActionDescriptionAlreadyExists(message=None, **kwargs)[source]

Bases: watcher.common.exception.Conflict

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

Bases: watcher.common.exception.ResourceNotFound

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

Bases: watcher.common.exception.WatcherException

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.ActionPlanCancelled(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

exception watcher.common.exception.ActionPlanIsOngoing(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.BaremetalResourceNotFound(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.ClusterStateStale(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

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

Bases: watcher.common.exception.WatcherException

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

Bases: watcher.common.exception.ComputeResourceNotFound

exception watcher.common.exception.ComputeResourceNotFound(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.CronFormatIsInvalid(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

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

Bases: watcher.common.exception.WatcherException

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

Bases: watcher.common.exception.Invalid

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

Bases: watcher.common.exception.InvalidActionPlan

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

Bases: watcher.common.exception.InvalidActionPlan

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.ComputeResourceNotFound

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

Bases: watcher.common.exception.WatcherException, exceptions.ValueError

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

Bases: watcher.common.exception.Invalid

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.InvalidIntervalOrCron(message=None, **kwargs)[source]

Bases: watcher.common.exception.Invalid

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.InvalidParameter(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.IronicNodeNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.BaremetalResourceNotFound

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.PoolNotFound(message=None, **kwargs)[source]

Bases: watcher.common.exception.StorageResourceNotFound

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.StorageClusterEmpty(message=None, **kwargs)[source]

Bases: watcher.common.exception.WatcherException

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

Bases: watcher.common.exception.StorageResourceNotFound

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

Bases: watcher.common.exception.WatcherException

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.UnsupportedActionType(message=None, **kwargs)[source]

Bases: watcher.common.exception.UnsupportedError

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

Bases: watcher.common.exception.UnsupportedError

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

Bases: watcher.common.exception.WatcherException

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

Bases: watcher.common.exception.StorageResourceNotFound

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

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.