Class TarantoolErrorResult


  • public class TarantoolErrorResult
    extends Object
    Incapsulates the error data returned in Tarantool server response
    • 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 server
        errorCode - error status code
        body - 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