Remove InvalidParameterValue exception
The InvalidParameterValue exception does not define a meaningful
msg_fmt. It is currently _("%(err)s"), which is the equivalent of
nothing and does not help with translation.
Replace InvalidParameterValue with Invalid exceptions.
Change-Id: If8b064e446cbc97e380127f360f262be9e8877a1
Closes-Bug: #1538398
This commit is contained in:
@@ -122,7 +122,7 @@ class BaseConnection(object):
|
||||
:param audit_template_id: The id or uuid of an audit template.
|
||||
:returns: An audit template.
|
||||
:raises: AuditTemplateNotFound
|
||||
:raises: InvalidParameterValue
|
||||
:raises: Invalid
|
||||
"""
|
||||
|
||||
@abc.abstractmethod
|
||||
@@ -209,7 +209,7 @@ class BaseConnection(object):
|
||||
:param audit_id: The id or uuid of an audit.
|
||||
:returns: An audit.
|
||||
:raises: AuditNotFound
|
||||
:raises: InvalidParameterValue
|
||||
:raises: Invalid
|
||||
"""
|
||||
|
||||
def soft_delete_audit(self, audit_id):
|
||||
@@ -299,6 +299,7 @@ class BaseConnection(object):
|
||||
:returns: A action.
|
||||
:raises: ActionNotFound
|
||||
:raises: ActionReferenced
|
||||
:raises: Invalid
|
||||
"""
|
||||
|
||||
@abc.abstractmethod
|
||||
@@ -371,4 +372,5 @@ class BaseConnection(object):
|
||||
:returns: An action plan.
|
||||
:raises: ActionPlanNotFound
|
||||
:raises: ActionPlanReferenced
|
||||
:raises: Invalid
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user