Package com.yahoo.vespa.http.client
Class Result.Detail
- java.lang.Object
-
- com.yahoo.vespa.http.client.Result.Detail
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint
getEndpoint()
Returns the endpoint from which the result was received, or null if this failed before being assigned an endpointException
getException()
Returns any exception related to this Detail, if unsuccessful.Result.ResultType
getResultType()
Returns the result of the operationString
getTraceMessage()
Returns any trace message produces, or null if noneboolean
isSuccess()
Returns whether the operation was successfulString
toString()
-
-
-
Constructor Detail
-
Detail
public Detail(Endpoint endpoint, Result.ResultType resultType, String traceMessage, Exception e)
-
Detail
public Detail(Endpoint endpoint)
-
-
Method Detail
-
getEndpoint
public Endpoint getEndpoint()
Returns the endpoint from which the result was received, or null if this failed before being assigned an endpoint
-
isSuccess
public boolean isSuccess()
Returns whether the operation was successful
-
getResultType
public Result.ResultType getResultType()
Returns the result of the operation
-
getException
public Exception getException()
Returns any exception related to this Detail, if unsuccessful. Might be null.
-
getTraceMessage
public String getTraceMessage()
Returns any trace message produces, or null if none
-
-