io.tarantool.driver.exceptions.TarantoolServerException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cartridge-driver Show documentation
Show all versions of cartridge-driver Show documentation
Tarantool Cartridge driver for Tarantool versions 1.10+ based on Netty framework
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);
}
}