X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=catalog%2Fpub%2Fexceptions.py;fp=genericparser%2Fpub%2Fexceptions.py;h=e0dac0e456961fa16a8c9ba8ad9fd51f82f09fae;hb=5fd2ae6a4517980ce0f89247bb354220748ae67b;hp=b3c797d4aa8ca420e54760aa2c75c61aff09195e;hpb=842a4fd77b1c9f93a4b97bd7f138c9b35a855d13;p=modeling%2Fetsicatalog.git diff --git a/genericparser/pub/exceptions.py b/catalog/pub/exceptions.py similarity index 52% rename from genericparser/pub/exceptions.py rename to catalog/pub/exceptions.py index b3c797d..e0dac0e 100644 --- a/genericparser/pub/exceptions.py +++ b/catalog/pub/exceptions.py @@ -13,45 +13,45 @@ # limitations under the License. -class GenericparserException(Exception): +class CatalogException(Exception): pass -class ResourceNotFoundException(GenericparserException): +class BadRequestException(CatalogException): pass -class PackageNotFoundException(GenericparserException): +class ResourceNotFoundException(CatalogException): pass -class PackageHasExistsException(GenericparserException): +class PackageNotFoundException(CatalogException): pass -class VnfPkgSubscriptionException(GenericparserException): +class PackageHasExistsException(CatalogException): pass -class VnfPkgDuplicateSubscriptionException(GenericparserException): +class VnfPkgSubscriptionException(CatalogException): pass -class SubscriptionDoesNotExistsException(GenericparserException): +class VnfPkgDuplicateSubscriptionException(CatalogException): pass -class NsdmBadRequestException(GenericparserException): +class SubscriptionDoesNotExistsException(CatalogException): pass -class NsdmDuplicateSubscriptionException(GenericparserException): +class NsdmBadRequestException(CatalogException): pass -class BadRequestException(GenericparserException): +class NsdmDuplicateSubscriptionException(CatalogException): pass -class ArtifactNotFoundException(GenericparserException): +class ArtifactNotFoundException(CatalogException): pass