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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-15 UTC."],[[["\u003cp\u003eThe webpage provides documentation for \u003ccode\u003eErrorDetails\u003c/code\u003e, a class in the Google API Client Library for Java used to manage standard error messages returned from a server.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eErrorDetails\u003c/code\u003e inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e and offers methods to retrieve various error types, including \u003ccode\u003eBadRequest\u003c/code\u003e, \u003ccode\u003eDebugInfo\u003c/code\u003e, \u003ccode\u003eErrorInfo\u003c/code\u003e, and \u003ccode\u003eRetryInfo\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere is a \u003ccode\u003ebuilder()\u003c/code\u003e static method used to create an \u003ccode\u003eErrorDetails.Builder\u003c/code\u003e and an \u003ccode\u003eErrorDetails()\u003c/code\u003e constructor.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage lists multiple versions of the documentation, from the latest version \u003ccode\u003e2.63.1\u003c/code\u003e down to version \u003ccode\u003e2.7.1\u003c/code\u003e, that are available to explore.\u003c/p\u003e\n"],["\u003cp\u003eThe method \u003ccode\u003egetMessage()\u003c/code\u003e is designed to unpack a non-default error message type and return it, or return null if the message is not found.\u003c/p\u003e\n"]]],[],null,[]]