The zaqar.storage.errors module

exception ClaimConflict(queue, project)

Bases: zaqar.storage.errors.Conflict

msg_format = u'Messages could not be claimed due to a conflict with another parallel claim that is already in queue {queue} for project {project}'
exception ClaimDoesNotExist(cid, queue, project)

Bases: zaqar.storage.errors.DoesNotExist

msg_format = u'Claim {cid} does not exist in queue {queue} for project {project}'
exception Conflict(**kwargs)

Bases: zaqar.storage.errors.ExceptionBase

Resource could not be created due to a conflict.

exception ConnectionError(**kwargs)

Bases: zaqar.storage.errors.ExceptionBase

Raised when the connection with the back-end was lost.

exception DoesNotExist(**kwargs)

Bases: zaqar.storage.errors.ExceptionBase

Resource does not exist.

exception ExceptionBase(**kwargs)

Bases: exceptions.Exception

msg_format = ''
exception FlavorDoesNotExist(flavor)

Bases: zaqar.storage.errors.DoesNotExist

msg_format = u'Flavor {flavor} does not exist'
exception MessageConflict(queue, project)

Bases: zaqar.storage.errors.Conflict

msg_format = u'Message could not be enqueued due to a conflict with one or more other messages that are already in queue {queue} for project {project}'
exception MessageDoesNotExist(mid, queue, project)

Bases: zaqar.storage.errors.DoesNotExist

msg_format = u'Message {mid} does not exist in queue {queue} for project {project}'
exception MessageIsClaimed(mid)

Bases: zaqar.storage.errors.NotPermitted

msg_format = u'Message {mid} is claimed'
exception MessageNotClaimed(mid)

Bases: zaqar.storage.errors.NotPermitted

msg_format = u'Message {mid} is no longer claimed'
exception MessageNotClaimedBy(mid, cid)

Bases: zaqar.storage.errors.NotPermitted

msg_format = u'Message {mid} is not claimed by {cid}'
exception NoPoolFound

Bases: zaqar.storage.errors.ExceptionBase

msg_format = u'No pools registered'
exception NotPermitted(**kwargs)

Bases: zaqar.storage.errors.ExceptionBase

Operation not permitted.

exception PoolAlreadyExists(**kwargs)

Bases: zaqar.storage.errors.Conflict

msg_format = u'The database URI is in use by another pool.'
exception PoolCapabilitiesMismatch(**kwargs)

Bases: zaqar.storage.errors.ExceptionBase

msg_format = u'The pool being added does not support the minimum set of capabilities'
exception PoolDoesNotExist(pool)

Bases: zaqar.storage.errors.DoesNotExist

msg_format = u'Pool {pool} does not exist'
exception PoolGroupDoesNotExist(pool_group)

Bases: zaqar.storage.errors.DoesNotExist

msg_format = u'Pool group {pool_group} does not exist'
exception PoolInUseByFlavor(pid, fid)

Bases: zaqar.storage.errors.NotPermitted

flavor
msg_format = u'Pool {pid} is in use by flavor {fid}'
exception QueueDoesNotExist(name, project)

Bases: zaqar.storage.errors.DoesNotExist

msg_format = u'Queue {name} does not exist for project {project}'
exception QueueIsEmpty(name, project)

Bases: zaqar.storage.errors.ExceptionBase

msg_format = u'Queue {name} in project {project} is empty'
exception QueueNotMapped(queue, project)

Bases: zaqar.storage.errors.DoesNotExist

msg_format = u'No pool found for queue {queue} for project {project}'
exception SubscriptionAlreadyExists(**kwargs)

Bases: zaqar.storage.errors.Conflict

msg_format = u'Such subscription already exists. Subscriptions are unique by project + queue + subscriber URI.'
exception SubscriptionDoesNotExist(subscription_id)

Bases: zaqar.storage.errors.DoesNotExist

msg_format = u'Subscription {subscription_id} does not exist'

Previous topic

The zaqar.storage.base module

Next topic

The zaqar.storage.mongodb.catalogue module

Project Source

This Page