App Engine Java SDK version 1.9.8
[gae.git] / java / src / main / com / google / appengine / api / taskqueue / InvalidQueueModeException.java
blob38ba9010f67ee9ef46cb92a8b2827702c4f37bb0
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 package com.google.appengine.api.taskqueue;
4 /**
5 * Mismatch of task method and queue mode.
6 * e.g. {@link Queue#leaseTasks(long, java.util.concurrent.TimeUnit, long)} called on a push queue,
7 * {@link Queue#add(TaskOptions)} with method {@link TaskOptions.Method} PULL to
8 * a push queue, or with {@link TaskOptions.Method} not equal to PULL to a pull
9 * queue.
12 public class InvalidQueueModeException extends RuntimeException {
13 public InvalidQueueModeException(String detail) {
14 super(detail);