Add exceptions hierarchy
nailgun.errors have a huge set of exceptions but without hierarchy. This patch remove exception generation from dict and make it explicitly with python classes and add some exceptions hierarchy. Now all network errors inherit from NetworkException and same for other exceptions. Change-Id: I9a2c6b358ea02a16711da74562308664ad7aed97 Closes-bug: #1566195
This commit is contained in:
parent
99d9afbe2b
commit
5bbaf23795
|
@ -19,7 +19,7 @@ import mock
|
|||
from oslo_serialization import jsonutils
|
||||
|
||||
from nailgun import consts
|
||||
from nailgun.errors import errors
|
||||
from nailgun import errors
|
||||
from nailgun.settings import settings
|
||||
from nailgun.test import base
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
from nailgun.api.v1.validators import assignment
|
||||
from nailgun.api.v1.validators import base
|
||||
from nailgun import consts
|
||||
from nailgun.errors import errors
|
||||
from nailgun import errors
|
||||
from nailgun import objects
|
||||
|
||||
from .objects import adapters
|
||||
|
|
Loading…
Reference in New Issue