Address review comments

This commit is contained in:
Evan Cordell 2016-04-11 16:34:40 -04:00
parent eba75494d9
commit b5db41920f
5 changed files with 16 additions and 16 deletions

View file

@ -34,19 +34,19 @@ ERROR_DESCRIPTION = {
class ApiException(Exception):
"""
o "type" (string) - A URI reference that identifies the
- "type" (string) - A URI reference that identifies the
problem type.
o "title" (string) - A short, human-readable summary of the problem
- "title" (string) - A short, human-readable summary of the problem
type. It SHOULD NOT change from occurrence to occurrence of the
problem, except for purposes of localization
o "status" (number) - The HTTP status code
- "status" (number) - The HTTP status code
o "detail" (string) - A human-readable explanation specific to this
- "detail" (string) - A human-readable explanation specific to this
occurrence of the problem.
o "instance" (string) - A URI reference that identifies the specific
- "instance" (string) - A URI reference that identifies the specific
occurrence of the problem. It may or may not yield further
information if dereferenced.
"""
@ -58,8 +58,6 @@ class ApiException(Exception):
self.payload = payload
self.error_type = error_type
print(self)
def to_dict(self):
rv = dict(self.payload or ())