exceptions.LimitExceeded

This commit is contained in:
Ask Solem 2010-10-22 15:42:23 +02:00
parent ce1d10ee5c
commit 945470e0b9
1 changed files with 14 additions and 7 deletions

View File

@ -10,13 +10,20 @@ class EnsureExhausted(Exception):
"""ensure() limit exceeded."""
class PoolExhausted(Exception):
"""All connections acquired."""
class PoolLimitExceeded(Exception):
"""Can't add more connections to pool."""
class TimeoutError(Exception):
"""Operation timed out."""
class LimitExceeded(Exception):
"""Limit exceeded."""
pass
class ConnectionLimitExceeded(LimitExceeded):
"""Maximum number of simultaneous connections exceeded."""
pass
class ChannelLimitExceeded(LimitExceeded):
"""Maximum number of simultaenous channels exceeded."""
pass