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-04-09 UTC."],[[["This webpage details the `FailedPreconditionException` class within the Google API Client Libraries for Java, focusing on version 2.42.0 and including links to various other versions of the class."],["`FailedPreconditionException` is thrown when an operation is rejected due to the system not being in the required state for execution, such as attempting to delete a non-empty directory."],["The class extends `ApiException` and inherits members such as `getDomain()`, `getErrorDetails()`, `getMetadata()`, `getReason()`, `getStatusCode()`, and `isRetryable()`."],["There are three constructors for `FailedPreconditionException`, allowing for different levels of detail, such as passing in a message, a cause, status code, retry information, or error details, all of which are detailed in the parameters section of the page."],["The page lists various members that are inherited from java.lang.Object and java.lang.Throwable classes, including commonly used methods like `clone()`, `equals()`, `getMessage()`, `printStackTrace()`, and more."]]],[]]