google.appengine.api.appinfo_errors module

Summary

Errors used in the Python appinfo API, used by app developers.

Contents

exception google.appengine.api.appinfo_errors.BackendNotFoundsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a Backend is required but not specified.

exception google.appengine.api.appinfo_errors.ContentTypeSpecifiedMultipleTimessource

Bases: google.appengine.api.appinfo_errors.Error

Raised when mime_type and http_headers specify a mime type.

N.B. This will be raised even when both fields specify the same content type. E.g. the following configuration (snippet) will be rejected:

handlers: - url: /static

static_dir: static mime_type: text/html http_headers:

content-type: text/html

This only applies to static handlers i.e. a handler that specifies static_dir or static_files.

exception google.appengine.api.appinfo_errors.DuplicateBackendsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a backend is found more than once in ‘backends’.

exception google.appengine.api.appinfo_errors.DuplicateBuiltinsSpecifiedsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a builtin is specified more than once in the same file.

exception google.appengine.api.appinfo_errors.DuplicateLibrarysource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a library is found more than once in ‘libraries’.

exception google.appengine.api.appinfo_errors.EmptyConfigurationFilesource

Bases: google.appengine.api.appinfo_errors.Error

Tried to load empty configuration file

exception google.appengine.api.appinfo_errors.Errorsource

Bases: exceptions.Exception

Base datastore AppInfo type.

exception google.appengine.api.appinfo_errors.InvalidBuiltinFormatsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when the name of the builtin in a list item cannot be identified.

exception google.appengine.api.appinfo_errors.InvalidHttpHeaderNamesource

Bases: google.appengine.api.appinfo_errors.Error

Raised when an invalid HTTP header name is used.

This issue arrises what a static handler uses http_headers. For example, the following would not be allowed:

handlers: - url: /static

static_dir: static http_headers:

D@nger: Will Robinson

exception google.appengine.api.appinfo_errors.InvalidHttpHeaderValuesource

Bases: google.appengine.api.appinfo_errors.Error

Raised when an invalid HTTP header value is used.

This issue arrises what a static handler uses http_headers. For example, the following would not be allowed:

handlers: - url: /static

static_dir: static http_headers:

Some-Unicode: “u2628”

exception google.appengine.api.appinfo_errors.InvalidLibraryNamesource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a library is specified that isn’t supported.

exception google.appengine.api.appinfo_errors.InvalidLibraryVersionsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a library uses a version that isn’t supported.

exception google.appengine.api.appinfo_errors.MissingApiConfigsource

Bases: google.appengine.api.appinfo_errors.Error

Raised if an api_endpoint handler is configured but no api_config.

exception google.appengine.api.appinfo_errors.MissingEndpointsConfigIdsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when an Endpoints config id is expected.

An Endpoints config id is expected when the Endpoints rollout strategy is unspecified or set to “fixed”.

exception google.appengine.api.appinfo_errors.MissingHandlerAttributesource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a handler is missing an attribute required by its type.

exception google.appengine.api.appinfo_errors.MissingRuntimeErrorsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when the “runtime” field is omitted for a non-vm.

exception google.appengine.api.appinfo_errors.MissingThreadsafesource

Bases: google.appengine.api.appinfo_errors.Error

Raised when the runtime needs a threadsafe declaration and it’s missing.

exception google.appengine.api.appinfo_errors.MissingURLMappingsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when there are no URL mappings in external appinfo.

exception google.appengine.api.appinfo_errors.MultipleBuiltinsSpecifiedsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when more than one builtin is specified in a single list element.

exception google.appengine.api.appinfo_errors.MultipleConfigurationFilesource

Bases: google.appengine.api.appinfo_errors.Error

Tried to load configuration file with multiple AppInfo objects

exception google.appengine.api.appinfo_errors.MultipleProjectNamessource

Bases: google.appengine.api.appinfo_errors.Error

Configuration file had both “application:” and “project:” fields.

A configuration file can specify the project name using either the old-style “application: name” syntax or the newer “project: name” syntax, but not both.

exception google.appengine.api.appinfo_errors.NotEnoughAutoscalingUtilizationTargetsErrorsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when not enough custom metric autoscaling targets are present.

exception google.appengine.api.appinfo_errors.PositionUsedInAppYamlHandlersource

Bases: google.appengine.api.appinfo_errors.Error

Raised when position attribute is used in handler in AppInfoExternal.

exception google.appengine.api.appinfo_errors.RuntimeDoesNotSupportLibrariessource

Bases: google.appengine.api.appinfo_errors.Error

Raised when ‘libraries’ is used in a runtime that does not support it.

exception google.appengine.api.appinfo_errors.ThreadsafeWithCgiHandlersource

Bases: google.appengine.api.appinfo_errors.Error

Raised when threadsafe is enabled with a CGI handler specified.

exception google.appengine.api.appinfo_errors.TooManyAutoscalingUtilizationTargetsErrorsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when too many custom metric autoscaling targets are present.

exception google.appengine.api.appinfo_errors.TooManyHttpHeaderssource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a handler specified too many HTTP headers.

The message should indicate the maximum number of headers allowed.

exception google.appengine.api.appinfo_errors.TooManyScalingSettingsErrorsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when more than one scaling settings section is present.

exception google.appengine.api.appinfo_errors.TooManyURLMappingssource

Bases: google.appengine.api.appinfo_errors.Error

Raised when there are too many URL mappings in external appinfo.

exception google.appengine.api.appinfo_errors.UnexpectedEndpointsConfigIdsource

Bases: google.appengine.api.appinfo_errors.Error

Raised when an Endpoints config id is unexpected.

An Endpoints config id is forbidden when the Endpoints rollout strategy is set to “managed”.

exception google.appengine.api.appinfo_errors.UnexpectedHandlerAttributesource

Bases: google.appengine.api.appinfo_errors.Error

Raised when a handler type has an attribute that it does not use.

exception google.appengine.api.appinfo_errors.UnknownHandlerTypesource

Bases: google.appengine.api.appinfo_errors.Error

Raised when it is not possible to determine URL mapping type.