Exception thrown when the operation was rejected because the system is not in a state required
for the operation's execution. For example, directory to be deleted may be non-empty, an rmdir
operation is applied to a non-directory, etc.
[[["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-09-04 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eFailedPreconditionException\u003c/code\u003e class within the Google API Client Library for Java, version 2.14.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFailedPreconditionException\u003c/code\u003e is thrown when an operation cannot be performed due to the system not being in the correct state, such as trying to delete a non-empty directory.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits members from \u003ccode\u003eApiException\u003c/code\u003e and other core Java classes like \u003ccode\u003eObject\u003c/code\u003e and \u003ccode\u003eThrowable\u003c/code\u003e, including methods for status code retrieval and determining retryability.\u003c/p\u003e\n"],["\u003cp\u003eIt provides two constructors to create \u003ccode\u003eFailedPreconditionException\u003c/code\u003e objects, allowing for the specification of a message, a cause \u003ccode\u003eThrowable\u003c/code\u003e, a \u003ccode\u003eStatusCode\u003c/code\u003e, and a \u003ccode\u003eboolean\u003c/code\u003e to indicate retryability.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation also shows the different versions of this exception class, from 2.63.1 to 2.7.1, that are part of this API.\u003c/p\u003e\n"]]],[],null,[]]