App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.tools.dev_appserver_apiserver.EnumRejectionError Class Reference
Inheritance diagram for google.appengine.tools.dev_appserver_apiserver.EnumRejectionError:
google.appengine.tools.dev_appserver_apiserver.RequestRejectionError

Public Member Functions

def __init__
 
def Message
 
def Errors
 
- Public Member Functions inherited from google.appengine.tools.dev_appserver_apiserver.RequestRejectionError
def Message
 
def Errors
 
def ToJson
 

Public Attributes

 parameter_name
 
 value
 
 allowed_values
 

Detailed Description

Custom request rejection exception for enum values.

Constructor & Destructor Documentation

def google.appengine.tools.dev_appserver_apiserver.EnumRejectionError.__init__ (   self,
  parameter_name,
  value,
  allowed_values 
)
Constructor for EnumRejectionError.

Args:
  parameter_name: String; the name of the enum parameter which had a value
rejected.
  value: The actual value passed in for the enum. Usually string.
  allowed_values: List of strings allowed for the enum.

Member Function Documentation

def google.appengine.tools.dev_appserver_apiserver.EnumRejectionError.Errors (   self)
A list containing the errors associated with the rejection.

Intended to mimic those returned from an API in production in Google's API
infrastructure.

Returns:
  A list with a single element that is a dictionary containing the error
information.
def google.appengine.tools.dev_appserver_apiserver.EnumRejectionError.Message (   self)
A descriptive message describing the error.

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