io.tarantool.driver.exceptions.TarantoolSocketException 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;
import io.tarantool.driver.TarantoolServerAddress;
/**
* Represent network exception
*
* @author Sergey Volgin
*/
public class TarantoolSocketException extends TarantoolClientException {
private final TarantoolServerAddress tarantoolServerAddress;
/**
* @param message the message
* @param tarantoolServerAddress the address
* @param cause the cause
*/
public TarantoolSocketException(String message, TarantoolServerAddress tarantoolServerAddress, Throwable cause) {
super(message, cause);
this.tarantoolServerAddress = tarantoolServerAddress;
}
/**
* @param message the message
* @param tarantoolServerAddress the cause
*/
public TarantoolSocketException(String message, TarantoolServerAddress tarantoolServerAddress) {
super(message);
this.tarantoolServerAddress = tarantoolServerAddress;
}
/**
* Get {@link TarantoolServerAddress} for this exception
* @return the address
*/
public TarantoolServerAddress getTarantoolServerAddress() {
return tarantoolServerAddress;
}
}