Skip to content

Commit d0dd2ec

Browse files
committed
Added 501 exceptions to client package.
Change-Id: I129296a2db18d81708cc2766feaa1c5075827817
1 parent 34e97e4 commit d0dd2ec

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

quantum/client/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
430: exceptions.PortNotFound,
3434
431: exceptions.StateInvalid,
3535
432: exceptions.PortInUseClient,
36-
440: exceptions.AlreadyAttachedClient}
36+
440: exceptions.AlreadyAttachedClient,
37+
501: exceptions.NotImplementedError}
3738
AUTH_TOKEN_HEADER = "X-Auth-Token"
3839

3940

quantum/common/exceptions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ class MissingArgumentError(Error):
159159
pass
160160

161161

162+
class NotImplementedError(Error):
163+
pass
164+
165+
162166
def wrap_exception(f):
163167
def _wrap(*args, **kw):
164168
try:

0 commit comments

Comments
 (0)