io.tarantool.driver.exceptions.errors.ErrorsErrorKey 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 from tarantool/errors library
*
* @author Oleg Kuznetsov
*/
enum ErrorsErrorKey implements ErrorKey {
LINE("line", ValueFactory.newString("line")),
CLASS_NAME("class_name", ValueFactory.newString("class_name")),
ERR("err", ValueFactory.newString("err")),
FILE("file", ValueFactory.newString("file")),
ERROR_MESSAGE("str", ValueFactory.newString("str")),
STACKTRACE("stack", ValueFactory.newString("stack"));
private final String key;
private final StringValue msgPackKey;
ErrorsErrorKey(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