Python 2.7 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Python 2.7
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Python
2.7 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Python.
Stay organized with collections
Save and categorize content based on your preferences.
google.appengine.api.yaml_errors module
Summary
Errors used in the YAML API, which is used by app developers.
Contents
- exception google.appengine.api.yaml_errors.Errorsource
-
Bases: exceptions.Exception
Base datastore yaml error type.
- exception google.appengine.api.yaml_errors.EventError(cause, event)source
-
Bases: google.appengine.api.yaml_errors.EventListenerError
Generated specifically when an error occurs in event handler.
- cause
-
The original exception which caused the EventListenerError.
- event
-
Event being handled when exception occured.
- exception google.appengine.api.yaml_errors.EventListenerError(cause)source
-
Bases: google.appengine.api.yaml_errors.Error
Top level exception raised by YAML listener.
Any exception raised within the process of parsing a YAML file via an
EventListener is caught and wrapped in an EventListenerError. The causing
exception is maintained, but additional useful information is saved which
can be used for reporting useful information to users.
- cause
-
The original exception which caused the EventListenerError.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-16 UTC."],[[["\u003cp\u003eThis module, \u003ccode\u003egoogle.appengine.api.yaml_errors\u003c/code\u003e, defines the error types used within the YAML API for App Engine development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eError\u003c/code\u003e class is the base class for all datastore YAML error types within this module.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAmbiguousConfigurationFiles\u003c/code\u003e is raised when both YAML and XML configuration files exist for the same information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDuplicateAttribute\u003c/code\u003e occurs when an attribute is assigned to twice in the configuration.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eEventListenerError\u003c/code\u003e is the top-level exception for errors during YAML parsing via an \u003ccode\u003eEventListener\u003c/code\u003e, encapsulating the original cause.\u003c/p\u003e\n"]]],[],null,["# google.appengine.api.yaml_errors module\n=======================================\n\nSummary\n-------\n\nErrors used in the YAML API, which is used by app developers.\n\nContents\n--------\n\n*exception* google.appengine.api.yaml_errors.AmbiguousConfigurationFiles[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#AmbiguousConfigurationFiles)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\nBoth YAML and XML files exist for the same configuration information. \n\n*exception* google.appengine.api.yaml_errors.DuplicateAttribute[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#DuplicateAttribute)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\nGenerated when an attribute is assigned to twice. \n\n*exception* google.appengine.api.yaml_errors.EmptyConfigurationFile[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#EmptyConfigurationFile)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\nTried to load empty configuration file. \n\n*exception* google.appengine.api.yaml_errors.Error[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#Error)\n\n: Bases: exceptions.Exception\n\nBase datastore yaml error type. \n\n*exception* google.appengine.api.yaml_errors.EventError(cause, event)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#EventError)\n\n: Bases: [google.appengine.api.yaml_errors.EventListenerError](#google.appengine.api.yaml_errors.EventListenerError)\n\n Generated specifically when an error occurs in event handler. \n\n cause\n\n : The original exception which caused the EventListenerError.\n\n event\n\n : Event being handled when exception occured.\n\n*exception* google.appengine.api.yaml_errors.EventListenerError(cause)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#EventListenerError)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\n Top level exception raised by YAML listener.\n\n Any exception raised within the process of parsing a YAML file via an\n EventListener is caught and wrapped in an EventListenerError. The causing\n exception is maintained, but additional useful information is saved which\n can be used for reporting useful information to users. \n\n cause\n\n : The original exception which caused the EventListenerError.\n\n*exception* google.appengine.api.yaml_errors.EventListenerYAMLError(cause)[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#EventListenerYAMLError)\n\n: Bases: [google.appengine.api.yaml_errors.EventListenerError](#google.appengine.api.yaml_errors.EventListenerError)\n\nGenerated specifically for yaml.error.YAMLError. \n\n*exception* google.appengine.api.yaml_errors.IllegalEvent[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#IllegalEvent)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\nRaised when an unexpected event type is received by listener. \n\n*exception* google.appengine.api.yaml_errors.InternalError[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#InternalError)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\nRaised when an internal implementation error is detected. \n\n*exception* google.appengine.api.yaml_errors.ListenerConfigurationError[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#ListenerConfigurationError)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\nGenerated when there is a parsing problem due to configuration. \n\n*exception* google.appengine.api.yaml_errors.MultipleConfigurationFile[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#MultipleConfigurationFile)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\nTried to load configuration file with multiple objects. \n\n*exception* google.appengine.api.yaml_errors.ProtocolBufferParseError[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#ProtocolBufferParseError)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\nError in protocol buffer parsing \n\n*exception* google.appengine.api.yaml_errors.UnexpectedAttribute[source](/appengine/docs/legacy/standard/python/refdocs/modules/google/appengine/api/yaml_errors#UnexpectedAttribute)\n\n: Bases: [google.appengine.api.yaml_errors.Error](#google.appengine.api.yaml_errors.Error)\n\n Raised when an unexpected attribute is encounted."]]