summaryrefslogtreecommitdiffstats
path: root/iredis/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'iredis/exceptions.py')
-rw-r--r--iredis/exceptions.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/iredis/exceptions.py b/iredis/exceptions.py
new file mode 100644
index 0000000..6aa45a1
--- /dev/null
+++ b/iredis/exceptions.py
@@ -0,0 +1,22 @@
+class IRedisException(Exception):
+ pass
+
+
+class UsageError(IRedisException):
+ pass
+
+
+class InvalidArguments(IRedisException):
+ """Invalid argument(s)"""
+
+
+class NotRedisCommand(IRedisException):
+ """Not a Redis command"""
+
+
+class AmbiguousCommand(IRedisException):
+ """Command is not finished, don't it's command's name"""
+
+
+class NotSupport(IRedisException):
+ """IRedis currently not support this."""