Describes violations in a client request. This error type focuses on the syntactic aspects of
the request.
Returns
Type
Description
com.google.rpc.BadRequest
getDebugInfo()
publicDebugInfogetDebugInfo()
Describes additional debugging info.
Returns
Type
Description
com.google.rpc.DebugInfo
getErrorInfo()
publicErrorInfogetErrorInfo()
This is the most important and special error message. It describes the cause of the error with
structured details that both humans and applications can depend on.
Returns
Type
Description
com.google.rpc.ErrorInfo
getHelp()
publicHelpgetHelp()
Provides links to documentation or for performing an out-of-band action.
Returns
Type
Description
com.google.rpc.Help
getLocalizedMessage()
publicLocalizedMessagegetLocalizedMessage()
Provides a localized error message that is safe to return to the user which can be attached to
an RPC error
Returns
Type
Description
com.google.rpc.LocalizedMessage
getPreconditionFailure()
publicPreconditionFailuregetPreconditionFailure()
Describes what preconditions have failed.
Returns
Type
Description
com.google.rpc.PreconditionFailure
getQuotaFailure()
publicQuotaFailuregetQuotaFailure()
Describes how a quota check failed.
Returns
Type
Description
com.google.rpc.QuotaFailure
getRequestInfo()
publicRequestInfogetRequestInfo()
Contains metadata about the request that clients can attach when filing a bug or providing
other forms of feedback.
Returns
Type
Description
com.google.rpc.RequestInfo
getResourceInfo()
publicResourceInfogetResourceInfo()
Describes the resource that is being accessed.
Returns
Type
Description
com.google.rpc.ResourceInfo
getRetryInfo()
publicRetryInfogetRetryInfo()
Describes when the clients can retry a failed request. Clients could ignore the recommendation
here or retry when this information is missing from error responses.
[[["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-02 UTC."],[[["The latest version available is 2.63.1, and the page lists various versions of the `ErrorDetails` class, spanning from 2.63.1 down to 2.7.1."],["The `ErrorDetails` class is an abstract class, and it contains a list of standard error messages that are returned from the server."],["`ErrorDetails` extends from `java.lang.Object` and inherits various standard object methods such as `clone()`, `equals()`, and `toString()`."],["The class offers a static `builder()` method for constructing `ErrorDetails` instances and methods such as `getMessage()` to extract specific error messages, along with several `get` methods like `getBadRequest()` and `getRetryInfo()` to access different types of error information."],["The `ErrorDetails` class provides many error messages that are structured for both humans and applications, with descriptions detailing their causes."]]],[]]