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

com.github.fmjsjx.libnetty.resp.RespErrorMessage Maven / Gradle / Ivy

package com.github.fmjsjx.libnetty.resp;

/**
 * An interface defines a RESP Error message.
 * 
 * @since 1.0
 *
 * @author MJ Fang
 */
public interface RespErrorMessage extends RespMessage {

    @Override
    default RespMessageType type() {
        return RespMessageType.ERROR;
    }

    /**
     * Returns the error code string.
     * 
     * @return the error code
     */
    CharSequence code();

    /**
     * Returns the error message.
     * 
     * @return the error message
     */
    String message();

    /**
     * Returns the full text string of this error.
     * 
     * @return the full text string of this error
     */
    String text();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy