io.tarantool.driver.exceptions.errors.BoxErrorKey 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.errors;
import org.msgpack.value.StringValue;
import org.msgpack.value.ValueFactory;
/**
* Errors keys for error message in box error
*
* @author Oleg Kuznetsov
*/
enum BoxErrorKey implements ErrorKey {
CODE("code", ValueFactory.newString("code")),
BASE_TYPE("base_type", ValueFactory.newString("base_type")),
TYPE("type", ValueFactory.newString("type")),
MESSAGE("message", ValueFactory.newString("message")),
TRACE("trace", ValueFactory.newString("trace"));
private final String key;
private final StringValue msgPackKey;
BoxErrorKey(String key, StringValue msgPackKey) {
this.key = key;
this.msgPackKey = msgPackKey;
}
@Override
public String getKey() {
return key;
}
@Override
public StringValue getMsgPackKey() {
return msgPackKey;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy