From 945470e0b9f29e863ba6277c8ef2ea96c138a7a6 Mon Sep 17 00:00:00 2001 From: Ask Solem Date: Fri, 22 Oct 2010 15:42:23 +0200 Subject: [PATCH] exceptions.LimitExceeded --- kombu/exceptions.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) 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 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