ErrorResponse Class Reference

Inheritance diagram for ErrorResponse:

Inheritance graph
[legend]
Collaboration diagram for ErrorResponse:

Collaboration graph
[legend]

Public Member Functions

def __init__
def load

Data Fields

 code
 reason

Static Public Attributes

list required_fields = ['code', 'reason']

Detailed Description

Model of an error response.

See https://github.com/wordnik/swagger-core/wiki/errors

Definition at line 305 of file swagger_model.py.


Member Function Documentation

def __init__ (   self  ) 

Definition at line 313 of file swagger_model.py.

00313                       :
00314         self.code = None
00315         self.reason = None
00316 
    def load(self, err_json, processor, context):

def load (   self,
  err_json,
  processor,
  context 
)

Definition at line 317 of file swagger_model.py.

00317                                                 :
00318         context = context.next_stack(err_json, 'code')
00319         validate_required_fields(err_json, self.required_fields, context)
00320         self.code = err_json.get('code')
00321         self.reason = err_json.get('reason')
00322         return self
00323 
00324 
class SwaggerType(Stringify):


Field Documentation

Definition at line 314 of file swagger_model.py.

Definition at line 315 of file swagger_model.py.

list required_fields = ['code', 'reason'] [static]

Definition at line 311 of file swagger_model.py.


The documentation for this class was generated from the following file:

Generated on Thu Apr 16 06:41:39 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6