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

io.tarantool.driver.exceptions.errors.ErrorsErrorKey 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.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