Class OperationResult (2.0.0)

public class OperationResult implements Serializable

The result of an operation involving the search service.

Inheritance

Object > OperationResult

Implements

Serializable

Constructors

OperationResult(StatusCode code, String errorDetail)

public OperationResult(StatusCode code, String errorDetail)
Parameters
Name Description
code StatusCode

the status code of the request

errorDetail String

detailed error message or null

Methods

equals(Object object)

public boolean equals(Object object)
Parameter
Name Description
object Object
Returns
Type Description
boolean
Overrides

getCode()

public StatusCode getCode()
Returns
Type Description
StatusCode

the status code

getMessage()

public String getMessage()
Returns
Type Description
String

the detailed message or null

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides