summaryrefslogtreecommitdiff
path: root/novaclient/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'novaclient/exceptions.py')
-rw-r--r--novaclient/exceptions.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/novaclient/exceptions.py b/novaclient/exceptions.py
index d23df8ab..707aa889 100644
--- a/novaclient/exceptions.py
+++ b/novaclient/exceptions.py
@@ -24,6 +24,14 @@ class UnsupportedVersion(Exception):
pass
+class UnsupportedConsoleType(Exception):
+ """Indicates that the user is trying to use an unsupported
+ console type when retrieving console urls of servers.
+ """
+ def __init__(self, console_type):
+ self.message = 'Unsupported console_type "%s"' % console_type
+
+
class UnsupportedAttribute(AttributeError):
"""Indicates that the user is trying to transmit the argument to a method,
which is not supported by selected version.