Mismatch of task method and queue mode. e.g. Queue#leaseTasks(long,
java.util.concurrent.TimeUnit, long) called on a push queue, Queue#add(TaskOptions) with
method TaskOptions.Method PULL to a push queue, or with TaskOptions.Method not
equal to PULL to a pull queue.
[[["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-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eInvalidQueueModeException\u003c/code\u003e is a runtime exception triggered by a mismatch between the task method and the queue mode.\u003c/p\u003e\n"],["\u003cp\u003eThis exception occurs when operations like \u003ccode\u003eQueue#leaseTasks\u003c/code\u003e are used on a push queue, or when \u003ccode\u003eQueue#add\u003c/code\u003e is used with \u003ccode\u003eTaskOptions.Method\u003c/code\u003e PULL on a push queue.\u003c/p\u003e\n"],["\u003cp\u003eThis exception also occurs when the \u003ccode\u003eTaskOptions.Method\u003c/code\u003e is not set to PULL when being performed on a pull queue.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInvalidQueueModeException\u003c/code\u003e constructor takes a string parameter \u003ccode\u003edetail\u003c/code\u003e for providing a detailed description of the exception.\u003c/p\u003e\n"],["\u003cp\u003eThis exception inherits various methods from \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e classes, including methods for stack trace manipulation and basic object operations.\u003c/p\u003e\n"]]],[],null,[]]