Exception DatastoreException (2.28.2)

publicclass DatastoreExceptionextendsException

Indicates an error in a Datastore call.

Constructors

DatastoreException(String methodName, Code code, String message, Throwable cause)

publicDatastoreException(StringmethodName,Codecode,Stringmessage,Throwablecause)
Parameters
Name Description
methodName String
code com.google.rpc.Code
message String
cause Throwable

Methods

getCode()

publicCodegetCode()
Returns
Type Description
com.google.rpc.Code

the canonical error code

getMethodName()

publicStringgetMethodName()
Returns
Type Description
String

the datastore method name

toString()

publicStringtoString()
Returns
Type Description
String
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.