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
NameDescription
codeStatusCode

the status code of the request

errorDetailString

detailed error message or null

Methods

equals(Object object)

public boolean equals(Object object)
Parameter
NameDescription
objectObject
Returns
TypeDescription
boolean
Overrides

getCode()

public StatusCode getCode()
Returns
TypeDescription
StatusCode

the status code

getMessage()

public String getMessage()
Returns
TypeDescription
String

the detailed message or null

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides