From 945470e0b9f29e863ba6277c8ef2ea96c138a7a6 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 22 Oct 2010 15:42:23 +0200 Subject: exceptions.LimitExceeded --- kombu/exceptions.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'kombu') diff --git a/kombu/exceptions.py b/kombu/exceptions.py index 5ca2e7b9..fe88ac38 100644 --- a/kombu/exceptions.py +++ b/kombu/exceptions.py @@ -10,13 +10,20 @@ class EnsureExhausted(Exception): """ensure() limit exceeded.""" -class PoolExhausted(Exception): - """All connections acquired.""" +class TimeoutError(Exception): + """Operation timed out.""" -class PoolLimitExceeded(Exception): - """Can't add more connections to pool.""" +class LimitExceeded(Exception): + """Limit exceeded.""" + pass + + +class ConnectionLimitExceeded(LimitExceeded): + """Maximum number of simultaneous connections exceeded.""" + pass -class TimeoutError(Exception): - """Operation timed out.""" +class ChannelLimitExceeded(LimitExceeded): + """Maximum number of simultaenous channels exceeded.""" + pass -- cgit v1.2.1