Package io.tarantool.driver.protocol
Class TarantoolErrorResult
- java.lang.Object
-
- io.tarantool.driver.protocol.TarantoolErrorResult
-
public class TarantoolErrorResult extends Object
Incapsulates the error data returned in Tarantool server response
-
-
Constructor Summary
Constructors Constructor Description TarantoolErrorResult(Long syncId, Long errorCode, org.msgpack.value.Value body)
Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getErrorCode()
Get error status codeString
getErrorMessage()
Get error messageLong
getSyncId()
Get request ID a.k.a. sync ID
-
-
-
Constructor Detail
-
TarantoolErrorResult
public TarantoolErrorResult(Long syncId, Long errorCode, org.msgpack.value.Value body) throws TarantoolProtocolException
Basic constructor.- Parameters:
syncId
- the request ID passed back from Tarantool servererrorCode
- error status codebody
- response body containing the error message- Throws:
TarantoolProtocolException
- if the specified body is invalid
-
-
Method Detail
-
getSyncId
public Long getSyncId()
Get request ID a.k.a. sync ID- Returns:
- a number
-
getErrorCode
public Long getErrorCode()
Get error status code- Returns:
- a number
- See Also:
- "https://github.com/tarantool/tarantool/blob/master/src/box/errcode.h"
-
getErrorMessage
public String getErrorMessage()
Get error message- Returns:
- message
-
-