My favorites | English | Sign in

Google App Engine

Exceptions

The google.appengine.api.taskqueue package provides the following exception classes:

exception Error

This is the base for all exceptions in this package.

exception UnknownQueueError(Error)

The queue specified is unknown.

exception TransientError(Error)

There was a transient error while accessing the queue. Please try again later.

exception InternalError(Error)

There was an internal error while accessing this queue. If this problem continues, please contact the App Engine team through our support forum with a description of your problem.

exception InvalidTaskError(Error)

The task's parameters, headers, or method is invalid.

exception InvalidTaskNameError(InvalidTaskError)

The task's name is invalid.

exception TaskTooLargeError(InvalidTaskError)

The task is too large with its headers and payload.

exception TaskAlreadyExistsError(InvalidTaskError)

Task already exists. It has not yet run.

exception TombstonedTaskError(InvalidTaskError)

Task has been tombstoned.

exception InvalidUrlError(InvalidTaskError)

The task's relative URL is invalid.

exception BadTaskStateError(Error)

The task is in the wrong state for the requested operation.

exception InvalidQueueError(Error)

The Queue's configuration is invalid.

exception InvalidQueueNameError(InvalidQueueError)

The Queue's name is invalid.

exception PermissionDeniedError(Error)

The requested operation is not allowed for this app.

exception DuplicateTaskNameError(Error)

When adding multiple tasks to a queue in a batch, two tasks in the batch have the same name, which is not allowed.

exception TooManyTasksError(Error)

When adding multiple tasks to a queue in a batch, the number of tasks in the batch exceeds the limit.

exception DatastoreError(Error)

There was a datastore error while accessing the queue.

exception BadTransactionStateError(Error)

The state of the current transaction does not permit this operation.

exception InvalidTaskRetryOptionsError(Error)

The task retry configuration is invalid.

exception InvalidLeaseTimeError(Error)

The lease time period is invalid.

exception InvalidMaxTasksError(Error)

The requested max tasks in lease_tasks is invalid.

exception InvalidQueueModeError(Error)

Invoking PULL queue operation on a PUSH queue or vice versa.