summaryrefslogtreecommitdiff
path: root/keystoneclient/exceptions.py
diff options
context:
space:
mode:
authorNavid Pustchi <npustchi@gmail.com>2016-05-03 18:08:31 +0000
committerNavid Pustchi <npustchi@gmail.com>2016-05-04 19:30:03 +0000
commita9adca02dbdbf786dd7015f4d3c67c514d757423 (patch)
tree75ba605bba406d61de5967f49f6b50c5d35b16ec /keystoneclient/exceptions.py
parente9471bdf4cb96816ff551cde6b6fdc1e9cb00d3e (diff)
downloadpython-keystoneclient-a9adca02dbdbf786dd7015f4d3c67c514d757423.tar.gz
Fixing D204, D205, and D207 PEP257 violation.
Currently tox ignores D204, D205, and D207. D204: 1 blank required after class docstring. D205: Blank line required between one-line summary and description. D207: Docstring is under-indented. This change removes D204, D205, and D207 ignores in tox and fix violations. Change-Id: Id20d216fbd7647d468859b960088aac61c582d9b
Diffstat (limited to 'keystoneclient/exceptions.py')
-rw-r--r--keystoneclient/exceptions.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/keystoneclient/exceptions.py b/keystoneclient/exceptions.py
index 83bf57a..2e3270a 100644
--- a/keystoneclient/exceptions.py
+++ b/keystoneclient/exceptions.py
@@ -52,21 +52,25 @@ An alias of :py:exc:`keystoneauth1.exceptions.auth.AuthorizationFailure`
class ValidationError(ClientException):
"""Error in validation on API client side."""
+
pass
class UnsupportedVersion(ClientException):
"""User is trying to use an unsupported version of the API."""
+
pass
class CommandError(ClientException):
"""Error in CLI tool."""
+
pass
class AuthPluginOptionsMissing(AuthorizationFailure):
"""Auth plugin misses some options."""
+
def __init__(self, opt_names):
super(AuthPluginOptionsMissing, self).__init__(
_("Authentication failed. Missing options: %s") %
@@ -76,6 +80,7 @@ class AuthPluginOptionsMissing(AuthorizationFailure):
class AuthSystemNotFound(AuthorizationFailure):
"""User has specified an AuthSystem that is not installed."""
+
def __init__(self, auth_system):
super(AuthSystemNotFound, self).__init__(
_("AuthSystemNotFound: %r") % auth_system)
@@ -84,6 +89,7 @@ class AuthSystemNotFound(AuthorizationFailure):
class NoUniqueMatch(ClientException):
"""Multiple entities found instead of one."""
+
pass
@@ -102,6 +108,7 @@ An alias of :py:exc:`keystoneauth1.exceptions.catalog.EndpointNotFound`
class AmbiguousEndpoints(EndpointException):
"""Found more than one matching endpoint in Service Catalog."""
+
def __init__(self, endpoints=None):
super(AmbiguousEndpoints, self).__init__(
_("AmbiguousEndpoints: %r") % endpoints)
@@ -132,6 +139,7 @@ An alias of :py:exc:`keystoneauth1.exceptions.http.HttpServerError`
class HTTPRedirection(HttpError):
"""HTTP Redirection."""
+
message = _("HTTP Redirection")
@@ -353,6 +361,7 @@ HTTPError = HttpError
class CertificateConfigError(Exception):
"""Error reading the certificate."""
+
def __init__(self, output):
self.output = output
msg = _('Unable to load certificate.')
@@ -361,6 +370,7 @@ class CertificateConfigError(Exception):
class CMSError(Exception):
"""Error reading the certificate."""
+
def __init__(self, output):
self.output = output
msg = _('Unable to sign or verify data.')