Asterisk - The Open Source Telephony Project  18.5.0
Public Member Functions | Data Fields | Static Public Attributes
ErrorResponse Class Reference
Inheritance diagram for ErrorResponse:
Inheritance graph
[legend]
Collaboration diagram for ErrorResponse:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self)
 
def load (self, err_json, processor, context)
 
- Public Member Functions inherited from Stringify
def __repr__ (self)
 

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 306 of file swagger_model.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Definition at line 314 of file swagger_model.py.

314  def __init__(self):
315  self.code = None
316  self.reason = None
317 

Member Function Documentation

◆ load()

def load (   self,
  err_json,
  processor,
  context 
)

Field Documentation

◆ code

code

Definition at line 315 of file swagger_model.py.

Referenced by ErrorResponse.load().

◆ reason

reason

Definition at line 316 of file swagger_model.py.

Referenced by ErrorResponse.load().

◆ required_fields

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

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