io.tarantool.driver.exceptions.TarantoolFieldNotFoundException 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.metadata.TarantoolSpaceMetadata;
/**
* Represents error when a field is not found in space format metadata
*
* @author Alexey Kuzin
*/
public class TarantoolFieldNotFoundException extends TarantoolClientException {
public TarantoolFieldNotFoundException(int position, TarantoolSpaceMetadata spaceMetadata) {
super("Field with id %d not found in space %s", position, spaceMetadata.getSpaceName());
}
public TarantoolFieldNotFoundException(String name, TarantoolSpaceMetadata spaceMetadata) {
super("Field '%s' not found in space %s", name, spaceMetadata.getSpaceName());
}
}