Exception DatastoreException (2.25.1)

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
Name Description
methodName String
code com.google.rpc.Code
message String
cause Throwable

Methods

getCode()

public Code getCode()
Returns
Type Description
com.google.rpc.Code

the canonical error code

getMethodName()

public String getMethodName()
Returns
Type Description
String

the datastore method name

toString()

public String toString()
Returns
Type Description
String
Overrides