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-03 UTC."],[[["\u003cp\u003eThe page details the \u003ccode\u003eFailedPreconditionException\u003c/code\u003e class, which is thrown when an operation fails due to the system not being in the correct state.\u003c/p\u003e\n"],["\u003cp\u003eThis \u003ccode\u003eFailedPreconditionException\u003c/code\u003e class extends \u003ccode\u003eApiException\u003c/code\u003e and includes methods like \u003ccode\u003egetDomain()\u003c/code\u003e, \u003ccode\u003egetErrorDetails()\u003c/code\u003e, \u003ccode\u003egetMetadata()\u003c/code\u003e, and more inherited members from \u003ccode\u003eApiException\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFailedPreconditionException\u003c/code\u003e class provides three constructors for its instantiation, which vary on their \u003ccode\u003eParameters\u003c/code\u003e, such as accepting a message, a cause, status code, and whether it's retryable.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists all versions of the \u003ccode\u003eFailedPreconditionException\u003c/code\u003e class, with the latest version being 2.63.1 and going as far back as version 2.7.1.\u003c/p\u003e\n"]]],[],null,[]]