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

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