Exception DatastoreException (2.11.3)

public class DatastoreException extends Exception

Indicates an error in a Datastore call.

Constructors

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

public DatastoreException(String methodName, Code code, String message, Throwable cause)
Parameters
NameDescription
methodNameString
codecom.google.rpc.Code
messageString
causeThrowable

Methods

getCode()

public Code getCode()
Returns
TypeDescription
com.google.rpc.Code

the canonical error code

getMethodName()

public String getMethodName()
Returns
TypeDescription
String

the datastore method name

toString()

public String toString()
Returns
TypeDescription
String
Overrides