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

io.tarantool.driver.exceptions.TarantoolSocketException 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;

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy