Exception DatastoreNeedIndexException (2.0.0)

public class DatastoreNeedIndexException extends RuntimeException

DatastoreNeedIndexException is thrown when no matching index was found for a query requiring an index. Check the Indexes page in the Admin Console and your datastore-indexes.xml file.

Constructors

DatastoreNeedIndexException(String message)

public DatastoreNeedIndexException(String message)
Parameter
Name Description
message String

DatastoreNeedIndexException(String message, Throwable cause)

public DatastoreNeedIndexException(String message, Throwable cause)
Parameters
Name Description
message String
cause Throwable

Methods

getMessage()

public String getMessage()
Returns
Type Description
String
Overrides

getMissingIndexDefinitionXml()

public String getMissingIndexDefinitionXml()

Returns the xml defining the missing index. Can be null.

Returns
Type Description
String