All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.tarantool.driver.exceptions.TarantoolServerException Maven / Gradle / Ivy

Go to download

Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework

There is a newer version: 0.14.0
Show newest version
package io.tarantool.driver.exceptions;

/**
 * Basic exception returned by Tarantool server for unsuccessful operations.
 *
 * @author Alexey Kuzin
 */
public class TarantoolServerException extends TarantoolException {

    private Long errorCode;
    private String errorMessage;

    public TarantoolServerException(Long errorCode, String errorMessage) {
        super();
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    public Long getErrorCode() {
        return errorCode;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    @Override
    public String toString() {
        return String.format("TarantoolServerException: code=%d, message=%s", errorCode, errorMessage);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy