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

com.github.smartbuf.exception.MismatchModeException Maven / Gradle / Ivy

Go to download

SmartBuf, is a cross-language serialization and deserialization framework, and it has high performance and compression ratio like protobuf, high compatibility and scalability like json.

There is a newer version: 0.1.4
Show newest version
package com.github.smartbuf.exception;

import java.io.IOException;

/**
 * MismatchModeException indicates the `mode` flag didn't match between input and output.
 *
 * @author sulin
 * @since 2019-10-22 16:49:56
 */
public class MismatchModeException extends IOException {

    public MismatchModeException(boolean localEnableStream) {
        super(localEnableStream ?
            "expect stream mode, but data has no-stream mode flag" :
            "expect no-stream mode, but data has stream mode flag");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy